Skip to content

Commit be84f7d

Browse files
authored
Updated if statements for tagged versions (#6)
1 parent a89be91 commit be84f7d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build-deploy-backend.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
run: echo "KOSLI_TRAIL=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
4242

4343
- name: Begin trail
44-
if: ${{ github.ref == 'refs/heads/main' }}
44+
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
4545
uses: ./.github/actions/kosli-begin-trail
4646
with:
4747
kosli-trail: ${{ env.KOSLI_TRAIL }}
@@ -69,7 +69,7 @@ jobs:
6969

7070
- name: Attest artifact
7171
id: calculate_fingerprint
72-
if: ${{ github.ref == 'refs/heads/main' }}
72+
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
7373
uses: ./.github/actions/kosli-attest-dir-artifact
7474
with:
7575
kosli-artifact-template-name: backend
@@ -78,7 +78,7 @@ jobs:
7878

7979
pull-request:
8080
name: Pull-request
81-
if: ${{ github.ref == 'refs/heads/main' }}
81+
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
8282
needs: [setup]
8383
runs-on: ubuntu-latest
8484
steps:
@@ -131,7 +131,7 @@ jobs:
131131
132132
assert-artifact:
133133
name: Assert artifacts
134-
if: ${{ github.ref == 'refs/heads/main' && always() }}
134+
if: ${{ (github.event_name != 'workflow_dispatch' && needs.semver-tag.outputs.release-to-prod == 'true') }}
135135
needs: [build, pull-request, deploy-stage, semver-tag]
136136
runs-on: ubuntu-latest
137137
steps:

0 commit comments

Comments
 (0)