Skip to content

Commit d3da2a9

Browse files
authored
Use gorelease fork as a temporary workaround for missing generic support (#38)
1 parent 973002d commit d3da2a9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

templates/github/workflows/gorelease.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ jobs:
3535
with:
3636
path: |
3737
~/go/bin/gorelease
38-
key: ${{ runner.os }}-gorelease
38+
key: ${{ runner.os }}-gorelease-fork
3939
- name: Gorelease
4040
id: gorelease
4141
run: |
42-
test -e ~/go/bin/gorelease || go install golang.org/x/exp/cmd/gorelease@latest
43-
OUTPUT=$(gorelease || exit 0)
42+
test -e ~/go/bin/gorelease || (rm -rf /tmp/gorelease && mkdir -p /tmp/gorelease && cd /tmp/gorelease && go mod init foo && go mod edit -replace golang.org/x/exp=github.com/vearutop/golang-exp@gorelease-generic && go get golang.org/x/exp/cmd/gorelease && go install golang.org/x/exp/cmd/gorelease)
43+
OUTPUT=$(gorelease 2>&1 || exit 0)
4444
echo "${OUTPUT}"
4545
OUTPUT="${OUTPUT//$'\n'/%0A}"
4646
echo "::set-output name=report::$OUTPUT"

0 commit comments

Comments
 (0)