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 cade36a commit 74627e3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 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 }
with: { go-version: "${{ steps.goversion.outputs.version }}" }
- uses: actions/setup-node@v1
with: { node-version: 8 }
- uses: actions/checkout@v2
Expand Down
7 changes: 5 additions & 2 deletions .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 }
with: { go-version: "${{ steps.goversion.outputs.version }}" }
- uses: actions/setup-node@v1
with: { node-version: 8 }
- uses: actions/checkout@v2
Expand Down Expand Up @@ -51,4 +54,4 @@ jobs:
with:
name: lrstanley/geoip
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
password: ${{ secrets.DOCKER_PASSWORD }}

0 comments on commit 74627e3

Please sign in to comment.