Fix deprecated set-env declaration (#106)

* Fix deprecated set-env declaration

* Fix add-path and set-env in install-sscache.ps1
This commit is contained in:
Giacomo 2020-11-17 11:16:24 +01:00 committed by draganrakita
parent 3bbb647e5f
commit c33d7fbb45
2 changed files with 5 additions and 5 deletions

View File

@ -133,7 +133,7 @@ jobs:
runs-on: ubuntu-16.04
steps:
- name: Set env
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
# ==============================
# Create ZIP files
@ -254,7 +254,7 @@ jobs:
runs-on: ubuntu-16.04
steps:
- name: Set env
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
# ==============================
# Download artifacts

View File

@ -15,5 +15,5 @@ curl -LO $url
tar -xzvf "$basename.tar.gz"
ls $basename/
. $basename/sccache --start-server
echo "::add-path::$(pwd)/$basename"
echo "::set-env name=RUSTC_WRAPPER::sccache"
echo "$(pwd)/$basename" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV