Skip to content

Commit 631e824

Browse files
authored
Handle missing last release in build workflow
1 parent f59b0a6 commit 631e824

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/build_packages_info.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,12 @@ jobs:
5151
echo "last commit: $gh_last_commit"
5252
5353
# Last release
54-
gh_last_release=$(git describe --tags $(git rev-list --tags --max-count=1))
54+
{
55+
gh_last_release=$(git describe --tags $(git rev-list --tags --max-count=1)) &&
56+
} ||
57+
{
58+
gh_last_release=""
59+
}
5560
echo "last GitHub release: $gh_last_release"
5661
5762
# Tidy up

0 commit comments

Comments
 (0)