Skip to content

Commit

Permalink
fix: use dependabot Go version in build
Browse files Browse the repository at this point in the history
  • Loading branch information
hazcod authored Jun 10, 2020
1 parent 0e4ccb8 commit d1936b9
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,21 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup go
-
uses: actions/checkout@v2
-
id: vars
run: |
echo ::set-output name=go_version::$(grep '^FROM go' .github/go/Dockerfile | cut -d ' ' -f 2 | cut -d ':' -f 2)
echo "Using Go version ${{ steps.vars.outputs.go_version }}"
-
name: Setup go
uses: actions/setup-go@v2
with:
stable: true
- name: Download Go modules
go-version: ${{ steps.vars.outputs.go_version }}
-
name: Download Go modules
run: go mod download
- name: Go build
-
name: Go build
run: make build

0 comments on commit d1936b9

Please sign in to comment.