Skip to content

Commit

Permalink
chore: fixup ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
nurupo committed Mar 29, 2024
1 parent 57de35b commit 477e18b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion script/build-minimal-static-toxic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,13 @@ mv "$PREPARE_ARTIFACT_DIR/toxic.conf.example" "$PREPARE_ARTIFACT_DIR/toxic.conf"

cp -aL /usr/share/terminfo "$PREPARE_ARTIFACT_DIR"

TOXIC_GIT_TAG="$(git -C "$BUILD_DIR/toxic" describe --tags --abbrev=0)"
TOXIC_GIT_TAG="$(git -C "$BUILD_DIR/toxic" describe --tags --abbrev=0 || true)"
# GitHub PRs do shallow checkouts without tags
if [ -z "$TOXIC_GIT_TAG" ]
then
git -C "$BUILD_DIR/toxic" fetch origin --unshallow
TOXIC_GIT_TAG="$(git -C "$BUILD_DIR/toxic" describe --tags --abbrev=0)"
fi
TOXIC_GIT_COMMIT="$(git -C "$BUILD_DIR/toxic" rev-parse HEAD)"
TOXIC_GIT_REV="$(git -C "$BUILD_DIR/toxic" rev-list HEAD --count)"
TOXIC_VERSION="${TOXIC_GIT_TAG}_r${TOXIC_GIT_REV} ($TOXIC_GIT_COMMIT)"
Expand Down

0 comments on commit 477e18b

Please sign in to comment.