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 6b647a4 commit dc7b955Copy full SHA for dc7b955
2 files changed
README.md
@@ -22,8 +22,9 @@ Supported event triggers:
22
23
```yaml
24
on:
25
+ issue_comment:
26
+ merge_group:
27
push:
- branches: [main]
28
29
jobs:
30
test:
action.yml
@@ -28,6 +28,7 @@ runs:
# Fallback on 0 if the PR number is not found.
number=${{ github.event.number || github.event.issue.number || 0 }}
fi
31
+ # Fallback on empty string if the branch is not found.
32
branch=${{ github.ref_name || github.head_ref || github.ref || '' }}
33
echo "branch=$branch" >> "$GITHUB_OUTPUT"
34
echo "number=$number" >> "$GITHUB_OUTPUT"
0 commit comments