From 26ab00b6c7016b3492a09333b1b2325fc4e22c85 Mon Sep 17 00:00:00 2001 From: Giacomo Date: Tue, 17 Nov 2020 11:16:24 +0100 Subject: [PATCH] Fix deprecated set-env declaration (#106) * Fix deprecated set-env declaration * Fix add-path and set-env in install-sscache.ps1 --- .github/workflows/build.yml | 6 +++--- scripts/actions/install-sccache.ps1 | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a57c75879..8e6214f35 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ on: env: AWS_REGION: "us-east-1" AWS_S3_ARTIFACTS_BUCKET: "openethereum-releases" - + jobs: build: name: Build Release @@ -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 diff --git a/scripts/actions/install-sccache.ps1 b/scripts/actions/install-sccache.ps1 index b170f473d..a8ad24990 100755 --- a/scripts/actions/install-sccache.ps1 +++ b/scripts/actions/install-sccache.ps1 @@ -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