File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2727 with :
2828 language : javascript
2929 repo-url : ${{ github.event.pull_request.head.repo.full_name || github.repository }}
30- commit-sha : ${{ github.event.workflow_run.head_sha || github.event.pull_request.head.sha || github.sha }}
30+ commit-sha : ${{ github.event.workflow_run && github.event.workflow_run .head_sha || github.event.pull_request.head.sha || github.sha }}
Original file line number Diff line number Diff line change 2929 - name : Checkout sources
3030 uses : actions/checkout@v4
3131 with :
32- ref : ${{ github.event.workflow_run.head_sha }}
32+ ref : ${{ github.event.workflow_run.head_branch }}
3333 fetch-depth : 0
3434
3535 - name : Install node 24
4747 git config user.name "${{ github.actor }}"
4848 git config user.email "${{ github.actor }}@users.noreply.github.com"
4949
50+ - name : Reset to workflow run commit
51+ run : |
52+ git reset --hard ${{ github.event.workflow_run.head_sha }}
53+
5054 - name : Get current version
5155 id : current-version
5256 run : |
You can’t perform that action at this time.
0 commit comments