File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -20,17 +20,18 @@ jobs:
2020 # Checkout the PR head commit to get the commit message first
2121 ref : ${{ github.event.pull_request.head.sha }}
2222
23- - name : Check out repository code
24- uses : actions/checkout@v4
25- with :
26- ref : ${{ inputs.commit_sha }}
27-
2823 - name : Check if static only
2924 uses : ./.github/actions/tests/skip_on_static
3025 id : skip
3126 with :
3227 gh_token : ${{ secrets.GITHUB_TOKEN }}
3328
29+ - name : Check out repository code
30+ uses : actions/checkout@v4
31+ if : inputs.commit_sha != ''
32+ with :
33+ ref : ${{ inputs.commit_sha }}
34+
3435 - name : Setup
3536 id : setup
3637 if : steps.skip.outputs.skip != 'true'
Original file line number Diff line number Diff line change 2828
2929 - name : Check out repository code
3030 uses : actions/checkout@v4
31+ if : inputs.commit_sha != ''
3132 with :
3233 ref : ${{ inputs.commit_sha }}
3334
You can’t perform that action at this time.
0 commit comments