feat: add getRelease before createRelease to allow adding to existing release #2

Merged
lunny merged 4 commits from myrqs/release-action:add-attachments into main 2023-05-05 02:42:22 +00:00
Contributor
No description provided.
myrqs added 1 commit 2023-05-04 08:36:40 +00:00
lunny reviewed 2023-05-04 10:06:22 +00:00
main.go Outdated
@ -134,0 +136,4 @@
if err == nil {
return release, nil
}
errMessage := fmt.Errorf("failed to get release for tag: %s with error: %w", opts.TagName, err)
Owner

We need to check the error type? If it's an non-exist error, we can continue. Otherwise, just display the error.

We need to check the error type? If it's an non-exist error, we can continue. Otherwise, just display the error.
lunny marked this conversation as resolved
myrqs added 1 commit 2023-05-04 13:02:14 +00:00
myrqs added 1 commit 2023-05-04 13:10:03 +00:00
myrqs added 1 commit 2023-05-04 17:53:17 +00:00
lunny approved these changes 2023-05-05 02:42:12 +00:00
lunny merged commit 489f83257d into main 2023-05-05 02:42:22 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: actions/release-action#2
No description provided.