We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f23da27 commit d852e7bCopy full SHA for d852e7b
.github/workflows/auto-update-app-headers.yml
@@ -80,13 +80,20 @@ jobs:
80
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81
run: |
82
PR_NUMBER=$(gh pr list --head "pr-update-app-files" --json number --jq '.[].number')
83
+
84
if [ -n "$PR_NUMBER" ]; then
85
PR_AUTHOR=$(gh pr view "$PR_NUMBER" --json author --jq '.author.login')
86
87
+ # Skip approval if the PR was created by the bot
88
if [ "$PR_AUTHOR" != "github-actions[bot]" ]; then
89
gh pr review "$PR_NUMBER" --approve
90
else
- echo "PR was created by the bot, skipping review."
91
+ echo "Skipping approval: PR was created by the bot."
92
fi
93
94
echo "No PR found for the current branch."
95
96
97
+ else
98
+ echo "No PR found for the current branch."
99
+ fi
0 commit comments