File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 uses : actions/checkout@v4
2323 with :
2424 persist-credentials : false
25- ref : ${{ github.event.inputs.tag || github.ref_name }}
25+ ref : ${{ github.event_name == 'workflow_dispatch' && github. event.inputs.tag || github.sha }}
2626 fetch-depth : 0
2727 - name : Detect changes
2828 uses : dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
3636
3737 build :
3838 needs : [ changes ]
39- if : ${{ needs.changes.outputs.solana_changes == 'true' }}
4039 runs-on : ubuntu-latest-8cores-32GB
4140 steps :
4241 - uses : actions/checkout@v4
4544 - name : Get Long and Short SHAs
4645 id : get_sha
4746 run : |
48- FULL_SHA=$(git rev-parse ${{ github.event_name == 'workflow_dispatch' && github.sha }})
47+ FULL_SHA=$(git rev-parse ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag || github. sha }})
4948 echo "short_sha=${FULL_SHA:0:12}" >> $GITHUB_OUTPUT
5049 echo "full_sha=$FULL_SHA" >> $GITHUB_OUTPUT
5150 - uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments