Skip to content

Commit 6e9e243

Browse files
committed
Make sure the script doesn't exit with a failure when there is no tag.
1 parent 225b233 commit 6e9e243

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Set version
3131
id: version
3232
run: |
33-
version=$(git describe --exact-match --tags HEAD 2> /dev/null)
33+
version=$(git describe --exact-match --tags HEAD 2> /dev/null || true)
3434
publish=false
3535
if [ -z "$version" ]; then
3636
version=$(git log -1 --date=format:"0.%Y.%m%d.%H%M" --format="%ad")

0 commit comments

Comments
 (0)