This commit is contained in:
Lunny Xiao 2023-05-15 13:49:11 +08:00
parent e177d49a3a
commit c3cc5befd6
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ import (
func main() {
ctx, err := gha.Context()
if err != nil {
gha.Fatalf("failed to get context: %w", err)
gha.Fatalf("failed to get context: %v", err)
}
if !strings.HasPrefix(ctx.Ref, "refs/tags/") {
@ -61,7 +61,7 @@ func main() {
// Note: rc.Note,
})
if err != nil {
gha.Fatalf("failed to create release: %w", err)
gha.Fatalf("failed to create release: %v", err)
}
matchedFiles, err := getFiles(ctx.Workspace, files)
@ -70,7 +70,7 @@ func main() {
}
if err := uploadFiles(ctx, c, owner, repo, rel.ID, matchedFiles); err != nil {
gha.Fatalf("Failed to upload files: %w", err)
gha.Fatalf("Failed to upload files: %v", err)
}
gha.SetOutput("status", "success")