Skip to content

Commit

Permalink
release action fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Dec 19, 2021
1 parent 645b7d5 commit 82071cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,10 @@ jobs:

- name: Generate publish related infomation
id: release_info
# the default value of tag_name is github.ref, see https://github.com/softprops/action-gh-release#-customizing
run: |
if [ $GITHUB_EVENT_NAME == 'release' ]
then
echo "::set-output name=tag_name::${{ github.ref }}"
echo "::set-output name=tag_name::" # leave an empty value here so softprops/action-gh-release will use the default value
elif [ $GITHUB_EVENT_NAME == 'workflow_dispatch' ]
then
echo "::set-output name=tag_name::${{ github.event.inputs.target_release_tag }}"
Expand Down

0 comments on commit 82071cc

Please sign in to comment.