|
4 | 4 | push: |
5 | 5 | branches: |
6 | 6 | - main |
7 | | - tags: ["release-*.*.*"] |
| 7 | + tags: ["v*.*.*"] |
8 | 8 | workflow_dispatch: |
9 | 9 |
|
10 | 10 | env: |
@@ -50,10 +50,10 @@ jobs: |
50 | 50 |
|
51 | 51 | - name: Set artifact name |
52 | 52 | 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) |
55 | 55 | VERSION="${{ github.ref }}" |
56 | | - VERSION="${VERSION#refs/tags/release-}" |
| 56 | + VERSION="${VERSION#refs/tags/v}" |
57 | 57 | echo "ARTIFACT_NAME=backend:${VERSION}" >> $GITHUB_ENV |
58 | 58 | else |
59 | 59 | echo "ARTIFACT_NAME=backend:${{ env.SHORT_SHA }}" >> $GITHUB_ENV |
|
62 | 62 |
|
63 | 63 | - name: Attest artifact |
64 | 64 | 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') }} |
66 | 66 | uses: kosli-dev/jira-multi-repo-release/.github/actions/kosli-attest-dir-artifact@main |
67 | 67 | env: |
68 | 68 | KOSLI_FLOW: ${{ needs.setup.outputs.kosli-flow }} |
|
74 | 74 |
|
75 | 75 | deploy-dev: |
76 | 76 | 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') }} |
78 | 78 | needs: [build] |
79 | 79 | environment: Development |
80 | 80 | runs-on: ubuntu-latest |
|
84 | 84 |
|
85 | 85 | attest-jira-list: |
86 | 86 | 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') }} |
88 | 88 | needs: [setup] |
89 | 89 | runs-on: ubuntu-latest |
90 | 90 | steps: |
|
0 commit comments