Skip to content

Commit 4d80fb7

Browse files
authored
Merge pull request #143 from udx/fix-release-workflow-gates
Fix Docker dependency PR automation
2 parents b7a1117 + 6fbe86d commit 4d80fb7

2 files changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/docker-dependency-updater.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ env:
2020
REPORT_PATH: docker-dependency-report.json
2121
UPDATE_BRANCH: docker-dependency-updates
2222
PR_TITLE: "chore(deps): docker dependency upgrade"
23-
PR_AUTO_MERGE: "true"
23+
PR_TEAM_REVIEWER: worker
24+
PR_LABELS: |-
25+
docker
26+
dependencies
27+
PR_AUTO_MERGE: "false"
2428
PR_MERGE_METHOD: squash
2529
COMMIT_MESSAGE: "chore(deps): update Docker dependency pins"
2630
COPILOT_PROMPT_PARTS: >-
@@ -55,7 +59,7 @@ jobs:
5559

5660
steps:
5761
- name: Checkout repository
58-
uses: actions/checkout@v6
62+
uses: actions/checkout@v7
5963

6064
- name: Load dependency updater defaults
6165
id: config
@@ -141,11 +145,12 @@ jobs:
141145

142146
permissions:
143147
contents: write
148+
issues: write
144149
pull-requests: write
145150

146151
steps:
147152
- name: Checkout repository
148-
uses: actions/checkout@v6
153+
uses: actions/checkout@v7
149154
with:
150155
ref: ${{ github.ref }}
151156

@@ -374,14 +379,17 @@ jobs:
374379
- name: Create pull request
375380
id: create-pr
376381
if: steps.changes.outputs.changed == 'true'
377-
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1
382+
uses: peter-evans/create-pull-request@v8
378383
timeout-minutes: 5
379384
with:
385+
token: ${{ secrets.GH_TOKEN }}
380386
commit-message: ${{ needs.config.outputs.commit_message }}
381387
title: ${{ needs.config.outputs.pr_title }}
382388
body-path: docker-dependency-pr-body.md
383389
branch: ${{ needs.config.outputs.update_branch }}
384390
add-paths: ${{ needs.config.outputs.dockerfile }}
391+
labels: ${{ env.PR_LABELS }}
392+
team-reviewers: ${{ env.PR_TEAM_REVIEWER }}
385393
draft: false
386394
delete-branch: true
387395

@@ -409,7 +417,7 @@ jobs:
409417
esac
410418
411419
env:
412-
GH_TOKEN: ${{ github.token }}
420+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
413421
MERGE_METHOD: ${{ needs.config.outputs.pr_merge_method }}
414422
PR_URL: ${{ steps.create-pr.outputs.pull-request-url }}
415423

.github/workflows/docker-ops.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
contents: read
4646
steps:
4747
- name: Checkout code
48-
uses: actions/checkout@v6
48+
uses: actions/checkout@v7
4949

5050
- name: Build worker image
5151
run: make build IMAGE_NAME=worker-runtime-output TAG="${GITHUB_SHA}"

0 commit comments

Comments
 (0)