File tree Expand file tree Collapse file tree 2 files changed +8
-15
lines changed
Expand file tree Collapse file tree 2 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ jobs:
114114 with :
115115 environment : " dev"
116116 terraform_version : " ${{ needs.metadata.outputs.terraform_version }}"
117- tag : " ${{ needs.build-stage.outputs.short_sha }}"
117+ tag : " ${{ needs.build-stage.outputs.tag }}"
118118 secrets : inherit
119119 acceptance-stage : # Recommended maximum execution time is 10 minutes
120120 name : " Acceptance stage"
Original file line number Diff line number Diff line change 3232 required : true
3333 type : string
3434 outputs :
35- short_sha :
36- description : " Short SHA of the commit"
37- value : ${{ jobs.build-and-package.outputs.short_sha }}
35+ tag :
36+ description : " SHA of the commit"
37+ value : ${{ jobs.build-and-package.outputs.tag }}
3838
3939env :
4040 AWS_REGION : eu-west-2
@@ -51,22 +51,15 @@ jobs:
5151 id-token : write
5252 contents : read
5353 outputs :
54- short_sha : ${{ steps.sha .outputs.short_sha }}
54+ tag : ${{ steps.release-version .outputs.release_version }}
5555 steps :
5656 - name : " Checkout code"
5757 uses : actions/checkout@v4
58- - name : " Get current date"
59- id : date
60- run : echo "today_date=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
61- - name : " Get short SHA"
62- id : sha
63- run : echo "short_sha=$(echo ${GITHUB_SHA} | cut -c1-7)" >> $GITHUB_OUTPUT
6458 - name : " Get the release version"
65- id : strip-branch-name
59+ id : release-version
6660 run : |
67- release_version=${{ steps.sha.outputs.short_sha }}
68- echo "Building release version $release_version"
69- echo "RELEASE_VERSION=$release_version" >> $GITHUB_ENV
61+ echo "release_version=${{ github.sha }}" >> $GITHUB_OUTPUT
62+ echo "RELEASE_VERSION=${{ github.sha }}" >> $GITHUB_ENV
7063 - name : " Build OpenNext Package"
7164 run : |
7265 npm ci --ignore-scripts
You can’t perform that action at this time.
0 commit comments