Skip to content

Commit

Permalink
Update auto-update-app-headers.yml (#2057)
Browse files Browse the repository at this point in the history
  • Loading branch information
michelroegl-brunner authored Feb 5, 2025
1 parent f98124a commit 34837c7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/auto-update-app-headers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,26 @@ jobs:
--label "automated pr"
env:
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
- name: No changes detected
Expand Down

0 comments on commit 34837c7

Please sign in to comment.