|
5 | 5 | inputs: |
6 | 6 | dev_version: |
7 | 7 | description: "DEV version to promote (e.g., dev-123-a1b2c3d)" |
8 | | - required: false |
| 8 | + required: true |
9 | 9 | type: string |
10 | 10 | pull_request: |
11 | 11 | branches: [main] |
12 | 12 |
|
13 | 13 | env: |
14 | | - BRANCH_NAME: ${{ github.ref_name }} |
| 14 | + BRANCH_NAME: ${{ github.event.ref.BRANCH_NAME }} |
15 | 15 |
|
16 | 16 | jobs: |
17 | 17 | quality_checks: |
|
34 | 34 | runs-on: ubuntu-22.04 |
35 | 35 | outputs: |
36 | 36 | version_tag: ${{ steps.output_version_tag.outputs.VERSION_TAG }} |
| 37 | + |
37 | 38 | steps: |
38 | 39 | - name: Checkout code |
39 | 40 | uses: actions/checkout@v5 |
@@ -118,24 +119,24 @@ jobs: |
118 | 119 | [See code diff](${{ github.event.compare }}) |
119 | 120 | [Release workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) |
120 | 121 |
|
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 }}) |
122 | 123 |
|
123 | 124 | package_code: |
124 | | - needs: [get_commit_id, tag_release] |
| 125 | + needs: [tag_release, get_commit_id] |
125 | 126 | uses: ./.github/workflows/cdk_package_code.yml |
126 | 127 | with: |
127 | 128 | 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}} |
130 | 131 |
|
131 | 132 | release_dev: |
132 | | - needs: [get_commit_id, tag_release, package_code] |
| 133 | + needs: [tag_release, package_code, get_commit_id] |
133 | 134 | uses: ./.github/workflows/release_all_stacks.yml |
134 | 135 | with: |
135 | 136 | STACK_NAME: epsam-test2 |
136 | 137 | TARGET_ENVIRONMENT: dev |
137 | 138 | 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}} |
139 | 140 | CDK_APP_NAME: EpsAssistMeApp |
140 | 141 | DEPLOY_CODE: true |
141 | 142 | LOG_RETENTION_IN_DAYS: 30 |
|
0 commit comments