Skip to content

Commit

Permalink
Updated action
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Sep 19, 2022
1 parent 3506537 commit 2ddba54
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ done

if [[ -f "$INPUTS_RELEASE_NOTES_FILE" ]]; then
if gh release view "$MAJOR_VERSION" > /dev/null 2>&1; then
gh release edit "$MAJOR_VERSION" --notes-file "$INPUTS_RELEASE_NOTES_FILE" --tag "$NEW_TAG"
gh release edit "$MAJOR_VERSION" --notes-file "$INPUTS_RELEASE_NOTES_FILE"
# Re-tag the major version using the latest tag
git tag -f "$MAJOR_VERSION" "$NEW_TAG"
git push -f "$INPUTS_REMOTE" "$MAJOR_VERSION"
else
gh release create "$MAJOR_VERSION" --notes-file "$INPUTS_RELEASE_NOTES_FILE" --tag "$NEW_TAG"
gh release create "$MAJOR_VERSION" --notes-file "$INPUTS_RELEASE_NOTES_FILE"
fi
fi

Expand Down

0 comments on commit 2ddba54

Please sign in to comment.