diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4d5a70a..c959b3f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,13 +11,15 @@ jobs: - id: vars run: | - echo ::set-output name=go_version::$(grep '^FROM go' .github/go/Dockerfile | cut -d ' ' -f 2 | cut -d ':' -f 2) - echo "Using Go version ${{ steps.vars.outputs.go_version }}" + goVersion=$(grep '^FROM go' .github/go/Dockerfile | cut -d ' ' -f 2 | cut -d ':' -f 2) + echo "go_version=${goVersion}" >> $GITHUB_OUTPUT + echo "Using Go version ${goVersion}" - - name: Setup go - uses: actions/setup-go@v2 + name: Set up Go + uses: actions/setup-go@v5 with: go-version: ${{ steps.vars.outputs.go_version }} + - - name: Download Go modules run: go mod download diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 63fcf83..9820a1d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,8 +13,18 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 - - name: setup dependencies - uses: actions/setup-go@v2 + - + id: vars + run: | + goVersion=$(grep '^FROM go' .github/go/Dockerfile | cut -d ' ' -f 2 | cut -d ':' -f 2) + echo "go_version=${goVersion}" >> $GITHUB_OUTPUT + echo "Using Go version ${goVersion}" + - + name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: ${{ steps.vars.outputs.go_version }} + - - name: release dry run run: make release-dry-run - uses: go-semantic-release/action@v1