Skip to content

Commit

Permalink
Fix missing GOPATH variable in releaser workflow (#131)
Browse files Browse the repository at this point in the history
* Fix missing GOPATH variable in releaser workflow

* Downgrade setup-go to v4

* Set GOPATH manually

* Set GOPATH manually

* Upgrade setup-go to v5
  • Loading branch information
koho authored Mar 17, 2024
1 parent da9cd02 commit dd0e3cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
- name: Build
id: build
shell: cmd
env:
GOPATH: C:\Users\runneradmin\go
run: |
for /f "tokens=3" %%a in ('findstr /r "Number.*=.*[0-9.]*" .\pkg\version\version.go') do set VERSION=%%a
echo version=%VERSION:"=%>>%GITHUB_OUTPUT%
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
- name: Build
shell: cmd
env:
GOPATH: C:\Users\runneradmin\go
run: build.bat

- name: Upload
Expand Down

0 comments on commit dd0e3cb

Please sign in to comment.