Skip to content

Commit

Permalink
ci(label): checkout to ref branch
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop committed Aug 16, 2023
1 parent 77233c1 commit 1cd6c06
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ jobs:
|| github.event.label.name == 'E2-forcemacos'
steps:
- uses: actions/checkout@v3
- name: Set HEAD_SHA
run: echo "HEAD_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV
with:
ref: ${{ github.event.pull_request.head.sha }}
# - name: Set HEAD_SHA
# run: echo "HEAD_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV
- uses: actions/github-script@v6
env:
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
LABEL: ${{ github.event.label.name }}
REF: ${{ github.head_ref || github.ref_name }}
with:
Expand Down

0 comments on commit 1cd6c06

Please sign in to comment.