File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 1111jobs :
1212 check :
1313 runs-on : ubuntu-latest
14+ outputs :
15+ tag_exists : ${{ steps.create_job_outputs.outputs.tag_exists }}
1416 steps :
1517 - name : Check if tag already exists
1618 id : check_tag_exists
2426 echo "tag_exists=${{ steps.check_tag_exists.outputs.exists }}" >> $GITHUB_OUTPUT
2527 build :
2628 needs : check
27- if : ${{ needs.check_tag_exists .outputs.tag_exists == 'false' }}
29+ if : ${{ needs.check .outputs.tag_exists == 'false' }}
2830 runs-on : ubuntu-latest
2931 steps :
3032 - uses : actions/checkout@v2
@@ -62,18 +64,10 @@ jobs:
6264 with :
6365 name : commit-extension-${{ github.event.inputs.tag }}
6466 path : ./
65-
66- # Check if the tag already exists
67- - name : Check if tag already exists
68- id : check_tag_exists
69- 70- with :
71- tag : ${{ github.event.inputs.tag }}
7267
7368 # Upload the VSIX file to the Github release
7469 - name : Create Release
7570 id : create_release
76- if : ${{ steps.check_tag_exists.outputs.exists == 'false' }}
7771 uses : actions/create-release@latest
7872 env :
7973 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8579 draft : false
8680 prerelease : false
8781 - name : Upload Release Asset
88- if : ${{ steps.check_tag_exists.outputs.exists == 'false' }}
8982 uses : actions/upload-release-asset@v1
9083 env :
9184 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments