Skip to content

Commit

Permalink
ci(label): use head_ref for REF
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop committed Aug 16, 2023
1 parent c03e1b0 commit 77233c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/github-script@v6
env:
LABEL: ${{ github.event.label.name }}
REF: ${{ github.ref_name }}
REF: ${{ github.head_ref || github.ref_name }}
with:
script: |
const { LABEL, REF, HEAD_SHA } = process.env;
Expand Down

0 comments on commit 77233c1

Please sign in to comment.