File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,17 @@ jobs:
3737 id : create_release
3838 run : |
3939 TAG_NAME=${GITHUB_REF#refs/tags/}
40- echo "Creating release for tag $TAG_NAME"
40+ BRANCH_NAME=$(echo "${GITHUB_REF}" | sed 's/refs\/heads\///') # Extract branch name from GITHUB_REF
41+ echo "Creating release for tag $TAG_NAME on branch $BRANCH_NAME"
4142 echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
43+ echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
4244
4345 - name : Upload Package to Release
4446 if : startsWith(github.ref, 'refs/tags/v') # Run this step if the tag starts with 'v'
4547 uses : softprops/action-gh-release@v1
4648 with :
4749 tag_name : ${{ env.TAG_NAME }}
50+ release_name : Release ${{ env.TAG_NAME }} from branch ${{ env.BRANCH_NAME }} # Include branch name in release title
4851 files : |
4952 dist/*
5053 env :
You can’t perform that action at this time.
0 commit comments