Skip to content

Commit a1ac6b8

Browse files
fix(build-nix-image): disable tag-based checkout
Signed-off-by: Cameron Smith <cameron.ray.smith@gmail.com>
1 parent e1213ae commit a1ac6b8

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.github/actions/build-nix-image/action.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,20 @@ runs:
6363
if [ "${{ inputs.triggerEventName }}" == "pull_request" ]; then
6464
echo "GIT_SHA=$CI_GITHUB_EVENT_PULL_REQUEST_HEAD_SHA" >> $GITHUB_ENV
6565
echo "GIT_SHA_SHORT=$CI_GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT" >> $GITHUB_ENV
66-
elif [ -n "${{ inputs.releaseVersion }}" ]; then
67-
tag_base="${{ inputs.releaseVersion }}"
68-
echo "tag_base=$tag_base"
69-
if [[ $tag_base =~ ^[0-9] ]]; then
70-
tag="v$tag_base"
71-
else
72-
tag="$tag_base"
73-
fi
74-
75-
sha=$(git rev-parse "$tag")
76-
short_sha=$(git rev-parse --short "$tag")
77-
78-
echo "GIT_SHA=$sha" >> $GITHUB_ENV
79-
echo "GIT_SHA_SHORT=$short_sha" >> $GITHUB_ENV
66+
# elif [ -n "${{ inputs.releaseVersion }}" ]; then
67+
# tag_base="${{ inputs.releaseVersion }}"
68+
# echo "tag_base=$tag_base"
69+
# if [[ $tag_base =~ ^[0-9] ]]; then
70+
# tag="v$tag_base"
71+
# else
72+
# tag="$tag_base"
73+
# fi
74+
75+
# sha=$(git rev-parse "$tag")
76+
# short_sha=$(git rev-parse --short "$tag")
77+
78+
# echo "GIT_SHA=$sha" >> $GITHUB_ENV
79+
# echo "GIT_SHA_SHORT=$short_sha" >> $GITHUB_ENV
8080
else
8181
echo "GIT_SHA=$CI_GITHUB_SHA" >> $GITHUB_ENV
8282
echo "GIT_SHA_SHORT=$CI_GITHUB_SHA_SHORT" >> $GITHUB_ENV

0 commit comments

Comments
 (0)