diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 444a9cf61..78282fa51 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -20,9 +20,15 @@ jobs: COSIGN_EXPERIMENTAL: "true" steps: + - name: Check out code onto GOPATH + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + with: + fetch-depth: 1 + path: ./src/github.com/${{ github.repository }} + - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: - go-version-file: 'go.mod' + go-version-file: ./src/github.com/${{ github.repository }}/go.mod check-latest: true - name: Install ko @@ -43,12 +49,6 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Check out code onto GOPATH - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - with: - fetch-depth: 1 - path: ./src/github.com/${{ github.repository }} - - name: Get TAG id: get_tag run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT