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 9fdec1f commit be4c82dCopy full SHA for be4c82d
.github/workflows/tests.yaml
@@ -36,4 +36,6 @@ jobs:
36
uses: ./
37
38
- name: Echo data
39
- run: echo Number "${{ steps.pr.outputs.number }}" from "${{ github.event_name }} event."
+ run: |
40
+ echo Number "${{ steps.pr.outputs.number }}" from "${{ github.event_name }} event."
41
+ echo Branch "${{ steps.pr.outputs.branch }}" from "${{ github.event_name }} event."
action.yml
@@ -27,6 +27,7 @@ runs:
27
else
28
# Get the PR number from the event payload or fallback on 0.
29
number=${{ github.event.number || github.event.issue.number || 0 }}
30
+ branch=${{ github.head_ref || "" }}
31
fi
32
echo "number=$number" >> "$GITHUB_OUTPUT"
33
0 commit comments