From a357d726821eadf35bb8f94536805581d9ebf669 Mon Sep 17 00:00:00 2001 From: Marcos Tenrero Date: Tue, 6 Oct 2020 15:59:33 +0200 Subject: [PATCH] fix error with error handling. CI FullRelease --- .github/workflows/go-tagged.yml | 2 +- main.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go-tagged.yml b/.github/workflows/go-tagged.yml index 55cfae3..2e2054c 100644 --- a/.github/workflows/go-tagged.yml +++ b/.github/workflows/go-tagged.yml @@ -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 diff --git a/main.go b/main.go index 4190bf5..5a81037 100644 --- a/main.go +++ b/main.go @@ -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) } }