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 97a1ae6 commit 847bb1bCopy full SHA for 847bb1b
1 file changed
.github/workflows/bot-ci-failure.yml
@@ -36,7 +36,8 @@ jobs:
36
local pr_author
37
pr_author=$(gh pr view "$pr_number" --repo "$REPO" --json author --jq '.author.login' 2>/dev/null || echo "")
38
if [ -z "$pr_author" ]; then
39
- echo "::warning::Could not fetch PR author for PR #$pr_number"
+ pr_author="${{ github.event.workflow_run.actor.login }}"
40
+ echo "::warning::Could not fetch PR author for PR #$pr_number; falling back to @$pr_author"
41
fi
42
echo "number=$pr_number" >> "$GITHUB_OUTPUT"
43
echo "author=$pr_author" >> "$GITHUB_OUTPUT"
0 commit comments