Skip to content

Commit

Permalink
ci: branch tag
Browse files Browse the repository at this point in the history
  • Loading branch information
appflowy committed Nov 19, 2023
1 parent e69b7c9 commit 94ab036
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ jobs:
TAG_NAME=${GITHUB_REF#refs/tags/}
VERSION=$(echo "$TAG_NAME" | cut -f1 -d"_")
BRANCH_NAME=$(echo "$TAG_NAME" | cut -f2- -d"_")
if [ -z "$BRANCH_NAME" ]; then
echo "Error: BRANCH_NAME is empty. The tag name should be in the format of <version>_<branch_name>"
exit 1
fi
echo $VERSION
echo $BRANCH_NAME
echo "::set-output name=version::$VERSION"
Expand Down

0 comments on commit 94ab036

Please sign in to comment.