Skip to content

Commit

Permalink
.github/workflows: Replace deprecated set-env handling (#16144)
Browse files Browse the repository at this point in the history
Reference: #15525
  • Loading branch information
bflad authored Nov 12, 2020
1 parent ee1bcab commit 71d8aa8
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/terraform_provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,11 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
# See also: https://github.com/actions/setup-go/issues/54
- if: steps.cache-terraform-plugin-dir.outputs.cache-hit != 'true' || steps.cache-terraform-plugin-dir.outcome == 'failure'
name: go env
run: |
echo "::set-env name=GOCACHE::$(go env GOCACHE)"
echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_ENV
- if: steps.cache-terraform-plugin-dir.outputs.cache-hit != 'true' || steps.cache-terraform-plugin-dir.outcome == 'failure'
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -128,9 +129,10 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
# See also: https://github.com/actions/setup-go/issues/54
- name: go env
run: |
echo "::set-env name=GOCACHE::$(go env GOCACHE)"
echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_ENV
- uses: actions/cache@v2
continue-on-error: true
timeout-minutes: 2
Expand All @@ -156,9 +158,10 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
# See also: https://github.com/actions/setup-go/issues/54
- name: go env
run: |
echo "::set-env name=GOCACHE::$(go env GOCACHE)"
echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_ENV
- uses: actions/cache@v2
continue-on-error: true
timeout-minutes: 2
Expand Down Expand Up @@ -186,9 +189,10 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
# See also: https://github.com/actions/setup-go/issues/54
- name: go env
run: |
echo "::set-env name=GOCACHE::$(go env GOCACHE)"
echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_ENV
- uses: actions/cache@v2
continue-on-error: true
timeout-minutes: 2
Expand All @@ -211,9 +215,10 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
# See also: https://github.com/actions/setup-go/issues/54
- name: go env
run: |
echo "::set-env name=GOCACHE::$(go env GOCACHE)"
echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_ENV
- uses: actions/cache@v2
continue-on-error: true
timeout-minutes: 2
Expand All @@ -238,9 +243,10 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
# See also: https://github.com/actions/setup-go/issues/54
- name: go env
run: |
echo "::set-env name=GOCACHE::$(go env GOCACHE)"
echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_ENV
- uses: actions/cache@v2
continue-on-error: true
timeout-minutes: 2
Expand Down

0 comments on commit 71d8aa8

Please sign in to comment.