From 94278d4d4fbe11b6c237fcf5b8ad1b40db5a730c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bojan=20=C4=8Cekrli=C4=87?= Date: Thu, 19 Nov 2020 22:32:45 +0100 Subject: [PATCH] Fix GitHub build scripts. --- .github/workflows/goreleaser.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 413004a..690d9da 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -11,19 +11,19 @@ jobs: with: fetch-depth: 0 - - name: Setup environment variables - id: setup_environment - shell: bash - run: | - echo "$(go version)" >> $GOVERSION - echo "$(git symbolic-ref --short HEAD 2>/dev/null || echo '')" >> $GIT_BRANCH - - name: Setup Go id: setup_go uses: actions/setup-go@v2 with: go-version: "1.15" + - name: Setup environment variables + id: setup_environment + shell: bash + run: | + echo "GOVERSION=$(go version)" >> $GITHUB_ENV + echo "GIT_BRANCH=$(git symbolic-ref --short HEAD 2>/dev/null || echo '')" >> $GITHUB_ENV + - name: Prepare compilation for linux/amd64 only id: update_goreleaser_yml if: github.ref == 'refs/heads/master'