Update changelog-pr.yml

This commit is contained in:
CanbiZ 2025-02-10 13:16:26 +01:00 committed by GitHub
parent 6bd1beafb4
commit ea46a0a96c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -146,3 +146,13 @@ jobs:
if [ -n "$PR_NUMBER" ]; then if [ -n "$PR_NUMBER" ]; then
gh pr review $PR_NUMBER --approve gh pr review $PR_NUMBER --approve
fi fi
- name: Re-approve pull request after update
if: env.changed == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
PR_NUMBER=$(gh pr list --head "${BRANCH_NAME}" --json number --jq '.[].number')
if [ -n "$PR_NUMBER" ]; then
gh pr review $PR_NUMBER --approve
fi