File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -11,25 +11,17 @@ jobs:
1111 name : Extract Version
1212 outputs :
1313 version : ${{ steps.check_version.outputs.version }}
14- ok : ${{ steps.check_version.outputs.ok }}
1514 steps :
1615 - id : check_version
1716 continue-on-error : true
1817 run : |
1918 tag=${{ github.ref_name }}
2019 prefix="v"
21- if [[ $tag == $prefix* ]]; then
22- version=${tag#$prefix}
23- echo "name=version::$version" >> $GITHUB_STATE
24- echo "name=ok::true" >> $GITHUB_STATE
25- else
26- echo "name=version::invalid" >> $GITHUB_STATE
27- echo "name=ok::false" >> $GITHUB_STATE
28- fi
20+ version=${tag#$prefix}
21+ echo "name=version::$version" >> $GITHUB_STATE
2922
3023 Create-Artifact :
3124 needs : Extract-Version
32- if : ${{ needs.Extract-Version.outputs.ok == 'true' }}
3325 uses : ./.github/workflows/artifact.yml
3426 with :
3527 release : true
You can’t perform that action at this time.
0 commit comments