Skip to content

Commit 6625dc3

Browse files
cmainastest555
authored andcommitted
Retry approach
PR: #53 Signed-off-by: Charalampos Mainas <charalampos.mainas@gmail.com> Reviewed-by: Charalampos Mainas <cmainas@nubificus.co.uk> Approved-by: Charalampos Mainas <cmainas@nubificus.co.uk> Reviewed-by: Charalampos Mainas <cmainas@nubificus.co.uk> Approved-by: Charalampos Mainas <cmainas@nubificus.co.uk>
1 parent 7f1418f commit 6625dc3

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/add-git-trailers.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
github.event.pull_request.base.ref == 'main' &&
1919
github.event.review.state == 'approved' &&
2020
(github.event.pull_request.rebaseable == null ||
21-
github.event.pull_request.rebaseable == true)
21+
github.event.pull_request.rebaseable == true)
2222
runs-on: ubuntu-22.04
2323
steps:
2424
- name: Harden the runner (Audit all outbound calls)
@@ -41,15 +41,13 @@ jobs:
4141
ref: ${{ github.event.pull_request.head.sha }}
4242

4343
- name: Append git trailers
44-
uses: nubificus/git-trailers@71281069ce88ac3c3c7615181bdbe1d022670000 # main_external
44+
uses: nubificus/git-trailers@e3cefe03237a8a33f12ee41a8194bfb03a4d179b # fix_auto_merge
4545
with:
46-
user-info: .github/contributors.yaml
47-
token: ${{ steps.generate-token.outputs.token }}
46+
user_info: .github/contributors.yaml
4847

4948
- name: Merge PR
5049
env:
5150
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
5251
PR_URL: ${{ github.event.pull_request.html_url }}
5352
run: |
54-
sleep 5
5553
gh pr merge "$PR_URL" --rebase --admin

.github/workflows/pr-merge.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@ on:
77
branches:
88
- 'main-pr*'
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
add-trailers-and-merge:
1215
if: |
1316
github.event.pull_request.merged == true &&
1417
startsWith(github.event.pull_request.base.ref, 'main-pr')
1518
runs-on: ubuntu-latest
19+
permissions:
20+
contents: write
1621

1722
steps:
1823
- name: Harden the runner (Audit all outbound calls)
@@ -34,10 +39,9 @@ jobs:
3439
private-key: ${{ secrets.URUNC_BOT_PRIVATE_KEY }}
3540

3641
- name: Append git trailers
37-
uses: nubificus/git-trailers@71281069ce88ac3c3c7615181bdbe1d022670000 # main_external
42+
uses: nubificus/git-trailers@e3cefe03237a8a33f12ee41a8194bfb03a4d179b # fix_auto_merge
3843
with:
39-
user-info: .github/contributors.yaml
40-
token: ${{ steps.generate-token.outputs.token }}
44+
user_info: .github/contributors.yaml
4145

4246
- name: Create a Pull Request from PR_BRANCH to main and merge it
4347
env:

0 commit comments

Comments
 (0)