Skip to content

Commit dc7b955

Browse files
authored
docs: add comments (#10)
Signed-off-by: Rishav Dhar <19497993+rdhar@users.noreply.github.com>
1 parent 6b647a4 commit dc7b955

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ Supported event triggers:
2222

2323
```yaml
2424
on:
25+
issue_comment:
26+
merge_group:
2527
push:
26-
branches: [main]
2728

2829
jobs:
2930
test:

action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ runs:
2828
# Fallback on 0 if the PR number is not found.
2929
number=${{ github.event.number || github.event.issue.number || 0 }}
3030
fi
31+
# Fallback on empty string if the branch is not found.
3132
branch=${{ github.ref_name || github.head_ref || github.ref || '' }}
3233
echo "branch=$branch" >> "$GITHUB_OUTPUT"
3334
echo "number=$number" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)