Skip to content

Commit

Permalink
utilize latest go version from go-versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lrstanley committed Jan 22, 2021
1 parent b19b390 commit a5c91db
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 19 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- id: goversion
run: |
echo ::set-output name=version::$(curl -s https://raw.githubusercontent.com/actions/go-versions/main/versions-manifest.json | sed -rn 's/.*"version": "([0-9]\.[0-9]+(\.[0-9]+)?)".*/\1/p' | head -1)
- uses: actions/setup-go@v2
with: { go-version: "^1.15.x" }
with: { go-version: "${{ steps.goversion.outputs.version }}" }
- uses: actions/checkout@v2
- name: build
run: make build
17 changes: 0 additions & 17 deletions .github/workflows/release-notify.yml

This file was deleted.

5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ jobs:
if: contains(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- id: goversion
run: |
echo ::set-output name=version::$(curl -s https://raw.githubusercontent.com/actions/go-versions/main/versions-manifest.json | sed -rn 's/.*"version": "([0-9]\.[0-9]+(\.[0-9]+)?)".*/\1/p' | head -1)
- uses: actions/setup-go@v2
with: { go-version: "^1.15.x" }
with: { go-version: "${{ steps.goversion.outputs.version }}" }
- uses: actions/checkout@v2
with: { fetch-depth: 0 }
- name: build
Expand Down

0 comments on commit a5c91db

Please sign in to comment.