We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d1a81b commit 3f07c9aCopy full SHA for 3f07c9a
.github/workflows/ci.yml
@@ -66,8 +66,8 @@ jobs:
66
- name: Set GIT_TAG
67
id: set-tag
68
run: |
69
- GIT_TAG=$(git describe --tags --abbrev=0 2>/dev/null)
70
- if [ $? -eq 0 ] && [ "$(git rev-list -n 1 $GIT_TAG)" = "$(git rev-parse HEAD)" ]; then
+ GIT_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
+ if [ -n "$GIT_TAG" ] && [ "$(git rev-list -n 1 $GIT_TAG 2>/dev/null || echo "")" = "$(git rev-parse HEAD)" ]; then
71
echo "::set-output name=GIT_TAG::${GIT_TAG}"
72
else
73
echo "::set-output name=GIT_TAG::"
0 commit comments