-
Notifications
You must be signed in to change notification settings - Fork 284
39 lines (32 loc) · 1.17 KB
/
wolfictl-update-gh.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Wolfictl Update From GitHub
on:
workflow_dispatch:
# Triggers the workflow every hour
schedule:
- cron: "0 * * * *"
permissions:
contents: read
id-token: write
env:
GIT_AUTHOR_NAME: wolfi-bot
GIT_AUTHOR_EMAIL: [email protected]
jobs:
update:
name: Wolfictl Update
if: github.repository == 'wolfi-dev/os'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: chainguard-dev/octo-sts-action@6177b4481c00308b3839969c3eca88c96a91775f # v1.0.0
id: octo-sts
with:
scope: ${{ github.repository }}
identity: github-updates
- uses: docker://ghcr.io/wolfi-dev/wolfictl:latest@sha256:c62f679ba214ed19732bfd19a905e84fc5ee522fda5d4faf9f9c2c2788eb5c1a
with:
entrypoint: wolfictl
args: update https://github.com/${{github.repository}} --release-monitoring-query=false --github-labels request-version-update --github-labels "automated pr"
env:
GITHUB_TOKEN: ${{ steps.octo-sts.outputs.token }}
GIT_AUTHOR_NAME: ${{ env.GIT_AUTHOR_NAME }}
GIT_AUTHOR_EMAIL: ${{ env.GIT_AUTHOR_EMAIL }}