Skip to content

Commit

Permalink
fix error with error handling. CI FullRelease
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcos Tenrero committed Oct 6, 2020
1 parent 3e5f925 commit a357d72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go-tagged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
tag_name: main-${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: true
prerelease: false
- name: Update Artifacts
id: upload-release-asset-darwin
uses: actions/upload-release-asset@v1
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ func main() {

log.Println("Writing result to the temporary file...")
err = ioutil.WriteFile(*outPath, jsonBytes, 0644)
if err != nil {
if err == nil {
log.Println("Succeeded! :)")
} else {
log.Println(err)
log.Fatal(err)
}
}

0 comments on commit a357d72

Please sign in to comment.