mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-08-15 23:50:19 +02:00
ci: auto-merge the generated contributors PR (#627)
Without it the bot PR sits until a human clicks merge, and every later push to main opens another duplicate — the action mints a fresh branch and PR each run with no dedup.
This commit is contained in:
@@ -27,6 +27,7 @@ jobs:
|
|||||||
token: ${{ steps.app-token.outputs.token }}
|
token: ${{ steps.app-token.outputs.token }}
|
||||||
|
|
||||||
- name: Update contributors list
|
- name: Update contributors list
|
||||||
|
id: contributors
|
||||||
uses: akhilmhdh/contributors-readme-action@v2.3.11
|
uses: akhilmhdh/contributors-readme-action@v2.3.11
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||||
@@ -37,3 +38,11 @@ jobs:
|
|||||||
auto_detect_branch_protection: true
|
auto_detect_branch_protection: true
|
||||||
commit_message: 'chore: update contributors list'
|
commit_message: 'chore: update contributors list'
|
||||||
pr_title_on_protected: 'chore: update contributors list'
|
pr_title_on_protected: 'chore: update contributors list'
|
||||||
|
|
||||||
|
- name: Enable auto-merge
|
||||||
|
if: steps.contributors.outputs.pr_id != ''
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||||
|
PR: ${{ steps.contributors.outputs.pr_id }}
|
||||||
|
REPO: ${{ github.repository }}
|
||||||
|
run: gh pr merge "$PR" --squash --auto -R "$REPO"
|
||||||
|
|||||||
Reference in New Issue
Block a user