1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-03-08 13:19:05 +00:00

Update auto-update-app-headers.yml (#2057)

This commit is contained in:
Michel Roegl-Brunner 2025-02-05 15:57:24 +01:00 committed by GitHub
parent f98124a57f
commit 34837c7777
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,6 +72,26 @@ jobs:
--label "automated pr" --label "automated pr"
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Approve pull request
if: steps.verify-diff.outputs.changed == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
PR_NUMBER=$(gh pr list --head "pr-update-app-files" --json number --jq '.[].number')
if [ -n "$PR_NUMBER" ]; then
gh pr review $PR_NUMBER --approve
fi
- name: Re-approve pull request after update
if: steps.verify-diff.outputs.changed == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
PR_NUMBER=$(gh pr list --head "pr-update-app-files" --json number --jq '.[].number')
if [ -n "$PR_NUMBER" ]; then
gh pr review $PR_NUMBER --approve
fi
# Step 8: Output success message when no changes # Step 8: Output success message when no changes
- name: No changes detected - name: No changes detected