Skip to content

Commit d852e7b

Browse files
authored
Update auto-update-app-headers.yml
1 parent f23da27 commit d852e7b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/auto-update-app-headers.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,20 @@ jobs:
8080
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8181
run: |
8282
PR_NUMBER=$(gh pr list --head "pr-update-app-files" --json number --jq '.[].number')
83+
8384
if [ -n "$PR_NUMBER" ]; then
8485
PR_AUTHOR=$(gh pr view "$PR_NUMBER" --json author --jq '.author.login')
86+
87+
# Skip approval if the PR was created by the bot
8588
if [ "$PR_AUTHOR" != "github-actions[bot]" ]; then
8689
gh pr review "$PR_NUMBER" --approve
8790
else
88-
echo "PR was created by the bot, skipping review."
91+
echo "Skipping approval: PR was created by the bot."
8992
fi
9093
else
9194
echo "No PR found for the current branch."
9295
fi
96+
97+
else
98+
echo "No PR found for the current branch."
99+
fi

0 commit comments

Comments
 (0)