File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -17,23 +17,21 @@ jobs:
17
17
18
18
- name : Build AMI
19
19
run : |
20
- GIT_SHA=$(git rev-parse HEAD)
20
+ GIT_SHA=${{github.sha}}
21
21
packer build -var "git-head-version=${GIT_SHA}" -var "packer-execution-id=${GITHUB_RUN_ID}" -var-file="development-arm.vars.pkr.hcl" -var-file="common.vars.pkr.hcl" amazon-arm64.pkr.hcl
22
22
23
23
- name : Grab release version
24
24
id : process_release_version
25
25
run : |
26
26
VERSION=$(sed -e 's/postgres-version = "\(.*\)"/\1/g' common.vars.pkr.hcl)
27
- GIT_SHA=$(git rev-parse HEAD)
28
27
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
29
- echo "git_sha=$GIT_SHA" >> "$GITHUB_OUTPUT"
30
28
31
29
- name : Create release
32
30
uses : softprops/action-gh-release@v1
33
31
with :
34
32
name : ${{ steps.process_release_version.outputs.version }}
35
33
tag_name : ${{ steps.process_release_version.outputs.version }}
36
- target_commitish : ${{ steps.process_release_vesion.outputs.git_sha }}
34
+ target_commitish : ${{github.sha }}
37
35
38
36
- name : Slack Notification on Failure
39
37
if : ${{ failure() }}
You can’t perform that action at this time.
0 commit comments