Skip to content

Commit

Permalink
CI: don't use deprecated set-output in github actions (algorand#5453)
Browse files Browse the repository at this point in the history
Co-authored-by: chris erway <[email protected]>
  • Loading branch information
tzaffi and cce authored Jun 6, 2023
1 parent 1994341 commit 6b712a1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Determine Go version
id: go_version
run: echo "GO_VERSION=$(./scripts/get_golang_version.sh)" >> $GITHUB_ENV
- name: Install golang
uses: actions/setup-go@v3
with:
go-version: "1.17.13"
go-version: ${{ env.GO_VERSION }}
- name: Restore libsodium from cache
id: cache-libsodium
uses: actions/cache@v3
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,13 @@ jobs:
run: |
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
echo "$RUNNER_WORKSPACE/$(basename $GITHUB_REPOSITORY)/bin" >> $GITHUB_PATH
- name: Determine Go version
id: go_version
run: echo "GO_VERSION=$(./scripts/get_golang_version.sh)" >> $GITHUB_ENV
- name: Install specific golang
uses: actions/setup-go@v3
with:
go-version: '1.17.13'
go-version: ${{ env.GO_VERSION }}
- name: Create folders for golangci-lint
run: mkdir -p cicdtmp/golangci-lint
- name: Check if custom golangci-lint is already built
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,11 @@ jobs:
echo "$RUNNER_WORKSPACE/$(basename $GITHUB_REPOSITORY)/bin" >> $GITHUB_PATH
- name: Determine Go version
id: go_version
run: |
GO_VERSION=$(./scripts/get_golang_version.sh)
echo "::set-output name=version::${GO_VERSION}"
- name: Install specific golang
run: echo "GO_VERSION=$(./scripts/get_golang_version.sh)" >> $GITHUB_ENV
- name: Install go version
uses: actions/setup-go@v3
with:
go-version: ${{ steps.go_version.outputs.version }}
go-version: ${{ env.GO_VERSION }}
- name: Test tools/block-generator
run: |
cd tools/block-generator
Expand Down

0 comments on commit 6b712a1

Please sign in to comment.