Skip to content

Commit e62955a

Browse files
authored
feat: add - run: git checkout HEAD^
1 parent f5783db commit e62955a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/base_build_push_ecr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
# Steps represent a sequence of tasks that will be executed as part of the job
4444
steps:
4545
- uses: actions/checkout@v2
46+
- run: git checkout HEAD^
4647
- uses: actions/setup-node@v2
4748
with:
4849
node-version: ${{ inputs.WF_NODE_VERSION }}
@@ -77,7 +78,7 @@ jobs:
7778
echo 'COMMIT-HASH --> ${{ github.sha }}'
7879
git pull origin main
7980
hash=$(git rev-parse HEAD)
80-
echo 'NEW HASH $hash'
81+
echo $hash
8182
8283
- name: Build, tag, and push image to Amazon ECR
8384
id: build-image

0 commit comments

Comments
 (0)