Skip to content

Commit

Permalink
fix: Add fetch-depth: 0
Browse files Browse the repository at this point in the history
The error:

```
ignoring errors because this is a snapshot     error=git doesn't contain any tags. Either add a tag or use --snapshot
```
  • Loading branch information
toshimaru committed Aug 12, 2023
1 parent fc4e977 commit d063e94
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,23 @@ jobs:
runs-on: ${{ matrix.os }}
name: Build & Test
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Build & Test
run: |
go build -v
go test ./...
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
args: release --snapshot --skip-publish --clean
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Build & Test
run: |
go build -v
go test ./...
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
args: release --clean --snapshot --skip-publish

# ref. https://github.com/gfx/example-github-actions-with-tty
- name: Colored Output Test
if: runner.os == 'Linux'
shell: 'script -q -e -c "bash {0}"'
run: go run main.go -- main.go
# ref. https://github.com/gfx/example-github-actions-with-tty
- name: Colored Output Test
if: runner.os == 'Linux'
shell: 'script -q -e -c "bash {0}"'
run: go run main.go -- main.go

0 comments on commit d063e94

Please sign in to comment.