We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b660a7a commit 0ea810bCopy full SHA for 0ea810b
1 file changed
.github/workflows/build.yaml
@@ -7,7 +7,25 @@ on:
7
- main
8
9
jobs:
10
+ check-tag:
11
+ runs-on: ubuntu-latest
12
+ name: Check for tag
13
+ steps:
14
+ - name: Checkout
15
+ uses: actions/checkout@v4
16
+ - name: Load Version
17
+ run: |
18
+ echo RELEASE_VERSION=$(cat ./version.txt) >> $GITHUB_ENV
19
+ - name: Check for Tag
20
21
+ if git show-ref --tags --verify --quiet "refs/tags/${RELEASE_VERSION}"; then
22
+ echo TAG_EXISTS=true >> $GITHUB_ENV
23
+ else
24
+ echo TAG_EXISTS=false >> $GITHUB_ENV
25
+ fi
26
+
27
build:
28
+ if: ${{ env.TAG_EXISTS == 'false' }}
29
strategy:
30
matrix:
31
rid:
@@ -50,6 +68,7 @@ jobs:
50
68
/home/runner/work/CovertActionTools/CovertActionTools/dist
51
69
if-no-files-found: error
52
70
release:
71
53
72
needs: build
54
73
runs-on: ubuntu-latest
55
74
name: Create Release
0 commit comments