Skip to content

Commit

Permalink
Added support to create or edit release.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Sep 19, 2022
1 parent 567424b commit 14d0aaf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ for tag in $(git tag -l "$MAJOR_VERSION.*"); do
} >> "$INPUTS_RELEASE_NOTES_FILE"
done

gh release edit "$MAJOR_VERSION" --notes-file "$INPUTS_RELEASE_NOTES_FILE"
if gh release view "$MAJOR_VERSION" > /dev/null 2>&1; then
gh release edit "$MAJOR_VERSION" --notes-file "$INPUTS_RELEASE_NOTES_FILE"
else
gh release create "$MAJOR_VERSION" --notes-file "$INPUTS_RELEASE_NOTES_FILE"
fi

echo "::set-output name=major_version::$MAJOR_VERSION"
echo "::set-output name=new_version::$NEW_TAG"

0 comments on commit 14d0aaf

Please sign in to comment.