Skip to content

Commit ae5db83

Browse files
committed
Fix issue with actions/checkout@v2
In certain workflows we use a custom Docker image for cross-compilation, this image is old and unmaintained so it has an old version of git and the latest version actions/checkout doesn't support it. This causes the action to fallback to the Github API to download the files but that doesn't create a git repository, thus the history is lost but goreleaser needs it to generate the changelog so it fails. So we use the older version of the action in certain cases to avoid this failures.
1 parent c0802f7 commit ae5db83

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/workflows/nightly.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ jobs:
2020

2121
steps:
2222
- name: checkout
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@v1
24+
with:
25+
fetch-depth: 0
2426

2527
- name: build
2628
env:

.github/workflows/release.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ jobs:
1717

1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v1
21+
with:
22+
fetch-depth: 0
2123

2224
- name: Build
2325
run: goreleaser

.github/workflows/test.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ jobs:
113113

114114
steps:
115115
- name: checkout
116-
uses: actions/checkout@v2
116+
uses: actions/checkout@v1
117+
with:
118+
fetch-depth: 0
117119

118120
- name: build
119121
shell: bash

0 commit comments

Comments
 (0)