Skip to content

Commit a163065

Browse files
committed
Work on github workflow
1 parent 3767ee4 commit a163065

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/scripts/create_release.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ if [ "$REF" == "" ]; then
2020
fi
2121

2222
if [[ "$REF" =~ "refs/heads/" ]]; then
23-
TAG="${REF//refs\/heads\//}-$(date +%Y%m%d%H%M%S)"
23+
BRANCH="${REF//refs\/heads\//}"
24+
TAG="$BRANCH-$(date +%Y%m%d%H%M%S)"
2425
echo "Creating release with tag $TAG"
25-
gh release create "$TAG" -d -p -F RELEASE.md
26+
gh release create "$TAG" -d -p -F RELEASE.md --target $BRANCH
2627
elif [[ "$REF" =~ "refs/tags" ]]; then
2728
TAG="${REF//refs\/tags\//}"
2829
echo "Creating release with tag $TAG"

0 commit comments

Comments
 (0)