Skip to content

Commit

Permalink
fix release workflow to checkout first (#1283)
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Callaway <[email protected]>
  • Loading branch information
bobcallaway authored Sep 24, 2024
1 parent 31ebb3b commit 3c79cb2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3c79cb2

Please sign in to comment.