refactor: use correct go version

This commit is contained in:
Jan De Dobbeleer 2021-12-16 19:59:45 +01:00 committed by Jan De Dobbeleer
parent 9ae5217a97
commit 27df69f119
2 changed files with 9 additions and 1 deletions

View file

@ -12,11 +12,19 @@ name: Build Code
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: pwsh
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Override Go ♻️
run: |
New-Item -Path ./bin -ItemType Directory
Invoke-WebRequest 'https://github.com/jandedobbeleer/go/releases/download/1.17.5/go' -OutFile "$env:GOROOT/bin/go"
chmod a+x "$env:GOROOT/bin/go" 2>&1
- name: Checkout code
uses: actions/checkout@v2
- name: Run GoReleaser

View file

@ -49,7 +49,7 @@ jobs:
- name: Override Go ♻️
run: |
New-Item -Path ./bin -ItemType Directory
Invoke-WebRequest 'https://github.com/jandedobbeleer/go/releases/download/1.17.4/go' -OutFile "$env:GOROOT/bin/go"
Invoke-WebRequest 'https://github.com/jandedobbeleer/go/releases/download/1.17.5/go' -OutFile "$env:GOROOT/bin/go"
chmod a+x "$env:GOROOT/bin/go" 2>&1
- name: Tag HEAD 😸
run: git tag ${{ needs.changelog.outputs.tag }}