File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11name : Pre Release
2- on :
2+ on :
33 pull_request :
44 paths : [CHANGELOG.md]
55 branches : [master]
1212 - run : |
1313 source .github/scripts/changelog.sh
1414 git fetch origin --tags
15- if [[ -z "$(git tag -l "v$version")" ]]; then
15+ if [[ ! -z "$version" && -z "$(git tag -l "v$version")" ]]; then
1616 echo "BODY<<EOF" >> $GITHUB_ENV
1717 echo "$(IFS=$'\n'; echo "${log[*]}")" >> $GITHUB_ENV
1818 echo "EOF" >> $GITHUB_ENV
Original file line number Diff line number Diff line change 1313 - run : |
1414 source .github/scripts/changelog.sh
1515 git fetch origin --tags
16- if [[ -z "$(git tag -l "v$version")" ]]; then
16+ if [[ ! -z "$version" && -z "$(git tag -l "v$version")" ]]; then
1717 git tag "v$major.$minor.$patch"
1818 git tag "v$major.$minor" --force
1919 git tag "v$major" --force
You can’t perform that action at this time.
0 commit comments