diff --git a/.github/workflows/go-test-darwin.yml b/.github/workflows/go-test-darwin.yml index 2216a2f1..d8dec8cb 100644 --- a/.github/workflows/go-test-darwin.yml +++ b/.github/workflows/go-test-darwin.yml @@ -13,6 +13,8 @@ permissions: jobs: get-go-version: runs-on: ubuntu-latest + outputs: + go-version: ${{ steps.get-go-version.outputs.go-version }} steps: - uses: actions/checkout@v2 - name: 'Determine Go version' diff --git a/.github/workflows/go-test-linux.yml b/.github/workflows/go-test-linux.yml index 72b25803..76550c96 100644 --- a/.github/workflows/go-test-linux.yml +++ b/.github/workflows/go-test-linux.yml @@ -13,6 +13,8 @@ permissions: jobs: get-go-version: runs-on: ubuntu-latest + outputs: + go-version: ${{ steps.get-go-version.outputs.go-version }} steps: - uses: actions/checkout@v2 - name: 'Determine Go version' diff --git a/.github/workflows/go-test-windows.yml b/.github/workflows/go-test-windows.yml index b7e09a8b..1c15f9d9 100644 --- a/.github/workflows/go-test-windows.yml +++ b/.github/workflows/go-test-windows.yml @@ -13,6 +13,8 @@ permissions: jobs: get-go-version: runs-on: ubuntu-latest + outputs: + go-version: ${{ steps.get-go-version.outputs.go-version }} steps: - uses: actions/checkout@v2 - name: 'Determine Go version' diff --git a/.github/workflows/go-validate.yml b/.github/workflows/go-validate.yml index c3b05330..cad1ac29 100644 --- a/.github/workflows/go-validate.yml +++ b/.github/workflows/go-validate.yml @@ -22,6 +22,8 @@ jobs: echo "Building with Go $(cat .go-version)" echo "::set-output name=go-version::$(cat .go-version)" check-mod-tidy: + needs: + - get-go-version runs-on: ubuntu-latest name: Go Mod Tidy steps: @@ -31,6 +33,8 @@ jobs: go-version: ${{ needs.get-go-version.outputs.go-version }} - run: go mod tidy check-lint: + needs: + - get-go-version runs-on: ubuntu-latest name: Lint check steps: @@ -43,6 +47,8 @@ jobs: version: v1.47.3 only-new-issues: true check-fmt: + needs: + - get-go-version runs-on: ubuntu-latest name: Gofmt check steps: @@ -59,6 +65,8 @@ jobs: exit 1; \ fi check-generate: + needs: + - get-go-version runs-on: ubuntu-latest name: Generate check steps: