Skip to content

Commit

Permalink
Use env var with go version
Browse files Browse the repository at this point in the history
  • Loading branch information
mjgrzybek committed Apr 26, 2022
1 parent 71a098a commit 08ba3ec
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: CI

env:
GO_VERSION: "^1.18"

on:
push:
branches:
Expand Down Expand Up @@ -53,7 +56,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v2
with:
go-version: "^1.18.1"
go-version: ${{ GO_VERSION }}
- name: Download dependencies
id: depdownload
run: |
Expand Down Expand Up @@ -97,7 +100,7 @@ jobs:
- name: Set up Golang
uses: actions/setup-go@v2
with:
go-version: "^1.18.1"
go-version: ${{ GO_VERSION }}
- name: Setup cache
uses: actions/cache@v2
with:
Expand Down

0 comments on commit 08ba3ec

Please sign in to comment.