Skip to content

Commit

Permalink
Fetch fetch full history and tags in all CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
rjuer committed Sep 14, 2024
1 parent 0ae33f6 commit a513d99
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ jobs:
goos: ["linux", "darwin"]
goarch: ["amd64", "arm64"]
steps:
- uses: actions/checkout@v4
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0 # ensure all history and tags are fetched
- name: Install Go toolchain
uses: actions/setup-go@v5
with:
Expand All @@ -39,7 +42,10 @@ jobs:
goos: ["linux", "darwin"]
goarch: ["amd64", "arm64"]
steps:
- uses: actions/checkout@v4
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0 # ensure all history and tags are fetched
- name: Install Go toolchain
uses: actions/setup-go@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Build
run: |
mkdir dist
env GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -ldflags="-s -w -X 'github.com/rjuer/cidr/cmd.version=$VERSION'" -o dist/
env GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -ldflags="-s -w -X 'github.com/rjuer/cidr/cmd.version=$(VERSION)'" -o dist/
- name: Test
run: |
mkdir tmp
Expand Down

0 comments on commit a513d99

Please sign in to comment.