We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 773e7aa commit a7ef96dCopy full SHA for a7ef96d
1 file changed
.github/workflows/build-docker-image.yaml
@@ -29,7 +29,10 @@ jobs:
29
30
steps:
31
32
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v4
33
+ with:
34
+ ref: ${{ inputs.ref != '' && inputs.ref || github.ref }}
35
+ fetch-depth: 0
36
37
- name: Set up JDK 21
38
uses: actions/setup-java@v4
@@ -65,7 +68,7 @@ jobs:
65
68
fi
66
69
# normalize to short branch/tag name
67
70
REF_NAME="${REF##*/}"
- SHORT_SHA="${GITHUB_SHA::7}"
71
+ SHORT_SHA=$(git rev-parse --short HEAD)
72
if [ -n '${{ inputs.image_tag }}' ]; then
73
TAG='${{ inputs.image_tag }}'
74
else
0 commit comments