Skip to content

Commit

Permalink
docs: add comments (#10)
Browse files Browse the repository at this point in the history
Signed-off-by: Rishav Dhar <[email protected]>
  • Loading branch information
rdhar authored Jan 1, 2025
1 parent 6b647a4 commit dc7b955
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ Supported event triggers:

```yaml
on:
issue_comment:
merge_group:
push:
branches: [main]

jobs:
test:
Expand Down
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
# Fallback on empty string if the branch is not found.
branch=${{ github.ref_name || github.head_ref || github.ref || '' }}
echo "branch=$branch" >> "$GITHUB_OUTPUT"
echo "number=$number" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit dc7b955

Please sign in to comment.