Skip to content

Commit

Permalink
chore: add missing label to image digest update pr
Browse files Browse the repository at this point in the history
- add label to repo if missing
- add label to image digest update prs
BobyMCbobs committed Oct 5, 2023

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 7a5a0c9 commit 8bc16d1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/update-image-digests.yml
Original file line number Diff line number Diff line change
@@ -3,6 +3,10 @@ on:
schedule:
- cron: 0 1 * * *
workflow_dispatch: {}
permissions:
contents: write
pull-requests: write
issues: write
jobs:
update-image-digests:
runs-on: ubuntu-latest
@@ -49,8 +53,11 @@ jobs:
git commit -s -m "chore: update sync config.yaml images for ${TIMESTAMP}"
git push -f origin "${NEW_BRANCH}"
if ! gh label list --json name --jq .[].name | grep -Eq '^image-digest-update$'; then
gh label create image-digest-update || true
fi
ACTION=create
if [ "$HAS_EXISTING" = true ]; then
ACTION=edit
fi
gh pr "$ACTION" --title "Update sync config.yaml images ${TIMESTAMP}" --body "updates sync config.yaml images for ${TIMESTAMP}"
gh pr --label image-digest-update "$ACTION" --title "Update sync config.yaml images ${TIMESTAMP}" --body "updates sync config.yaml images for ${TIMESTAMP}"

0 comments on commit 8bc16d1

Please sign in to comment.