mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-15 10:05:19 +00:00
Auto-Merge Automatic PR (#4343)
* Make Automatic issues auto-close * Change PAT
This commit is contained in:
committed by
GitHub
parent
ab9760194d
commit
b5ed7b9f4e
10
.github/workflows/update-json-date.yml
vendored
10
.github/workflows/update-json-date.yml
vendored
@@ -126,6 +126,16 @@ jobs:
|
||||
if [ -n "$PR_NUMBER" ]; then
|
||||
gh pr review $PR_NUMBER --approve
|
||||
fi
|
||||
- name: Approve pull request and merge
|
||||
if: env.changed == 'true'
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.PAT_AUTOMERGE }}
|
||||
run: |
|
||||
PR_NUMBER=$(gh pr list --head "${{ env.BRANCH_NAME }}" --json number --jq '.[].number')
|
||||
if [ -n "$PR_NUMBER" ]; then
|
||||
gh pr review $PR_NUMBER --approve
|
||||
gh pr merge $PR_NUMBER --squash --admin
|
||||
fi
|
||||
|
||||
- name: No changes detected
|
||||
if: env.changed == 'false'
|
||||
|
||||
Reference in New Issue
Block a user