Skip to content

Commit 775abcb

Browse files
committed
MRJP-23 use v0.0.0 as tag instead of release-0.0.0
1 parent ae69211 commit 775abcb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/build-app.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- main
7-
tags: ["release-*.*.*"]
7+
tags: ["v*.*.*"]
88
workflow_dispatch:
99

1010
env:
@@ -50,10 +50,10 @@ jobs:
5050

5151
- name: Set artifact name
5252
run: |
53-
if [[ "${{ github.ref }}" == refs/tags/release-* ]]; then
54-
# Extract version from tag (remove 'refs/tags/release-' prefix)
53+
if [[ "${{ github.ref }}" == refs/tags/v* ]]; then
54+
# Extract version from tag (remove 'refs/tags/v' prefix)
5555
VERSION="${{ github.ref }}"
56-
VERSION="${VERSION#refs/tags/release-}"
56+
VERSION="${VERSION#refs/tags/v}"
5757
echo "ARTIFACT_NAME=backend:${VERSION}" >> $GITHUB_ENV
5858
else
5959
echo "ARTIFACT_NAME=backend:${{ env.SHORT_SHA }}" >> $GITHUB_ENV
@@ -62,7 +62,7 @@ jobs:
6262
6363
- name: Attest artifact
6464
id: calculate_fingerprint
65-
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/release-') }}
65+
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }}
6666
uses: kosli-dev/jira-multi-repo-release/.github/actions/kosli-attest-dir-artifact@main
6767
env:
6868
KOSLI_FLOW: ${{ needs.setup.outputs.kosli-flow }}
@@ -74,7 +74,7 @@ jobs:
7474

7575
deploy-dev:
7676
name: Deploy backend development
77-
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/release-') }}
77+
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }}
7878
needs: [build]
7979
environment: Development
8080
runs-on: ubuntu-latest
@@ -84,7 +84,7 @@ jobs:
8484

8585
attest-jira-list:
8686
name: Attest list of Jira issues since previous release
87-
if: ${{ startsWith(github.ref, 'refs/tags/release-') }}
87+
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
8888
needs: [setup]
8989
runs-on: ubuntu-latest
9090
steps:

0 commit comments

Comments
 (0)