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: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
defaults:
run:
shell: pwsh
steps: steps:
- name: Install Go - name: Install Go
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:
go-version: 1.17 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 - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Run GoReleaser - name: Run GoReleaser

View file

@ -49,7 +49,7 @@ jobs:
- name: Override Go ♻️ - name: Override Go ♻️
run: | run: |
New-Item -Path ./bin -ItemType Directory 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 chmod a+x "$env:GOROOT/bin/go" 2>&1
- name: Tag HEAD 😸 - name: Tag HEAD 😸
run: git tag ${{ needs.changelog.outputs.tag }} run: git tag ${{ needs.changelog.outputs.tag }}