Skip to content

Commit 08c5df3

Browse files
committed
fixed tag checking job
1 parent ca7d951 commit 08c5df3

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

.github/workflows/build-deploy.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
jobs:
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
@@ -24,7 +26,7 @@ jobs:
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-
uses: mukunku/[email protected]
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 }}
@@ -85,7 +79,6 @@ jobs:
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 }}

0 commit comments

Comments
 (0)