Skip to content

Commit 53b1268

Browse files
committed
ci: fetch complete history for build
Otherwise, only a single commit is checked out, and gotagger can't determine the version.
1 parent fd59635 commit 53b1268

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.github/workflows/build.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030

3131
- name: Check out code into the Go module directory
3232
uses: actions/checkout@v2
33+
with:
34+
fetch-depth: 0
3335

3436
- name: Get dependencies
3537
run: go mod download

.github/workflows/release.yaml

+5-2
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,18 @@ jobs:
1616
uses: actions/checkout@v2
1717
with:
1818
fetch-depth: 0
19+
run: |
20+
git config user.name "$(git log -1 --format=format:%aN)"
21+
git config user.email "$(git log -1 --format=format:%aE)"
22+
1923
- name: Set up Go
2024
uses: actions/setup-go@v2
2125
with:
2226
go-version: 1.15
27+
2328
- name: tag and release
2429
env:
2530
RELEASE_DRY_RUN: "false"
2631
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2732
run: |
28-
git config user.name "$(git log -1 --format=format:%aN)"
29-
git config user.email "$(git log -1 --format=format:%aE)"
3033
make release

CHANGELOG.md

-4
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
44

55
- [Changelog](#changelog)
6-
<<<<<<< HEAD
7-
- [[v0.6.1] - 2021-02-04](#v061---2021-02-04)
8-
=======
96
- [[v0.6.1] - 2021-02-05](#v061---2021-02-05)
10-
>>>>>>> a3b082e (release: cut the v0.6.1 release)
117
- [Fixed](#fixed)
128
- [[v0.6.0] - 2020/10/12](#v060---20201012)
139
- [Feature](#feature)

0 commit comments

Comments
 (0)