Skip to content

Commit

Permalink
Update to use env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Seanstoppable committed Aug 19, 2024
1 parent c1e456f commit ae2712e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
# Read the variable from the file
GO_VERSION=$(grep '^go ' go.mod | awk '{print $2}')
# Set the variable as an output
echo "::set-output name=go_version::$GO_VERSION"
echo "GO_VERSION=$GO_VERSION" >> $GITHUB_OUTPUT
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ steps.go_version.outputs.go_version }}
go-version: ${{ env.GO_VERSION }}

- name: Check out source
uses: actions/checkout@v4
Expand All @@ -45,11 +45,12 @@ jobs:
# Read the variable from the file
GO_VERSION=$(grep '^go ' go.mod | awk '{print $2}')
# Set the variable as an output
echo "::set-output name=go_version::$GO_VERSION"
echo "GO_VERSION=$GO_VERSION" >> $GITHUB_OUTPUT
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ steps.go_version.outputs.go_version }}
go-version: ${{ env.GO_VERSION }}

- name: Check out source
uses: actions/checkout@v4
Expand Down

0 comments on commit ae2712e

Please sign in to comment.