Skip to content

Commit 84b47be

Browse files
chore: tagging fix until unified method
1 parent 915c7eb commit 84b47be

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ on:
55
inputs:
66
dev_version:
77
description: "DEV version to promote (e.g., dev-123-a1b2c3d)"
8-
required: false
8+
required: true
99
type: string
1010
pull_request:
1111
branches: [main]
1212

1313
env:
14-
BRANCH_NAME: ${{ github.ref_name }}
14+
BRANCH_NAME: ${{ github.event.ref.BRANCH_NAME }}
1515

1616
jobs:
1717
quality_checks:
@@ -34,6 +34,7 @@ jobs:
3434
runs-on: ubuntu-22.04
3535
outputs:
3636
version_tag: ${{ steps.output_version_tag.outputs.VERSION_TAG }}
37+
3738
steps:
3839
- name: Checkout code
3940
uses: actions/checkout@v5
@@ -118,24 +119,24 @@ jobs:
118119
[See code diff](${{ github.event.compare }})
119120
[Release workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
120121
121-
It was initialised by [${{ github.event.sender.login }}](${{ github.event.sender.html_url }})
122+
It was initialized by [${{ github.event.sender.login }}](${{ github.event.sender.html_url }})
122123
123124
package_code:
124-
needs: [get_commit_id, tag_release]
125+
needs: [tag_release, get_commit_id]
125126
uses: ./.github/workflows/cdk_package_code.yml
126127
with:
127128
STACK_NAME: epsam-test2
128-
VERSION_NUMBER: ${{ needs.tag_release.outputs.version_tag }}
129-
COMMIT_ID: ${{ needs.get_commit_id.outputs.commit_id }}
129+
VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}}
130+
COMMIT_ID: ${{needs.get_commit_id.outputs.commit_id}}
130131

131132
release_dev:
132-
needs: [get_commit_id, tag_release, package_code]
133+
needs: [tag_release, package_code, get_commit_id]
133134
uses: ./.github/workflows/release_all_stacks.yml
134135
with:
135136
STACK_NAME: epsam-test2
136137
TARGET_ENVIRONMENT: dev
137138
VERSION_NUMBER: ${{ inputs.dev_version || needs.tag_release.outputs.version_tag }}
138-
COMMIT_ID: ${{ needs.get_commit_id.outputs.commit_id }}
139+
COMMIT_ID: ${{needs.get_commit_id.outputs.commit_id}}
139140
CDK_APP_NAME: EpsAssistMeApp
140141
DEPLOY_CODE: true
141142
LOG_RETENTION_IN_DAYS: 30

0 commit comments

Comments
 (0)