From 72103240d18ae4e19861a7921afcf352936441ad Mon Sep 17 00:00:00 2001 From: Russel Waters Date: Mon, 2 Nov 2020 12:42:16 -0800 Subject: [PATCH] use $GITHUB_ENV instead of set-env (#3024) https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ --- .github/workflows/beta_artifacts.yml | 16 +++++++++++----- .github/workflows/live_artifacts.yml | 16 +++++++++++----- .github/workflows/test_network_artifacts.yml | 16 +++++++++++----- 3 files changed, 33 insertions(+), 15 deletions(-) diff --git a/.github/workflows/beta_artifacts.yml b/.github/workflows/beta_artifacts.yml index 04d2c767..137b7401 100644 --- a/.github/workflows/beta_artifacts.yml +++ b/.github/workflows/beta_artifacts.yml @@ -18,7 +18,9 @@ jobs: - uses: actions/checkout@722adc6 - uses: chrislennon/action-aws-cli@f0f8671 - name: tag - run: echo "::set-env name=TAG::`git describe --tags $GITHUB_SHA`" + run: | + TAG=`git describe --tags $GITHUB_SHA` + echo "TAG=$TAG" >> $GITHUB_ENV - name: Checkout Submodules run: git submodule update --init --recursive - name: Fetch Deps @@ -38,7 +40,9 @@ jobs: - uses: actions/checkout@722adc6 - uses: chrislennon/action-aws-cli@f0f8671 - name: tag - run: echo "::set-env name=TAG::`git describe --tags $GITHUB_SHA`" + run: | + TAG=`git describe --tags $GITHUB_SHA` + echo "TAG=$TAG" >> $GITHUB_ENV - name: Checkout Submodules run: git submodule update --init --recursive - name: Fetch Deps @@ -58,7 +62,9 @@ jobs: - uses: actions/checkout@722adc6 - uses: chrislennon/action-aws-cli@f0f8671 - name: tag - run: echo "::set-env name=TAG::`git describe --tags $GITHUB_SHA`" + run: | + TAG=`git describe --tags $GITHUB_SHA` + echo "TAG=$TAG" >> $GITHUB_ENV - name: Checkout Submodules run: git submodule update --init --recursive - name: Fetch Deps @@ -75,8 +81,8 @@ jobs: - uses: chrislennon/action-aws-cli@f0f8671 - name: tag run: | - $TRAVIS_TAG=git describe --tags $GITHUB_SHA - echo "::set-env name=TAG::$TRAVIS_TAG" + $TAG=git describe --tags $GITHUB_SHA + echo "TAG=$TAG" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - name: Checkout Submodules run: git submodule update --init --recursive - name: Fetch Deps diff --git a/.github/workflows/live_artifacts.yml b/.github/workflows/live_artifacts.yml index 0c85a7fa..8b6e5eb1 100644 --- a/.github/workflows/live_artifacts.yml +++ b/.github/workflows/live_artifacts.yml @@ -17,7 +17,9 @@ jobs: - uses: actions/checkout@722adc6 - uses: chrislennon/action-aws-cli@f0f8671 - name: tag - run: echo "::set-env name=TAG::`git describe --tags $GITHUB_SHA`" + run: | + TAG=`git describe --tags $GITHUB_SHA` + echo "TAG=$TAG" >> $GITHUB_ENV - name: Checkout Submodules run: git submodule update --init --recursive - name: Fetch Deps @@ -37,7 +39,9 @@ jobs: - uses: actions/checkout@722adc6 - uses: chrislennon/action-aws-cli@f0f8671 - name: tag - run: echo "::set-env name=TAG::`git describe --tags $GITHUB_SHA`" + run: | + TAG=`git describe --tags $GITHUB_SHA` + echo "TAG=$TAG" >> $GITHUB_ENV - name: Checkout Submodules run: git submodule update --init --recursive - name: Fetch Deps @@ -57,7 +61,9 @@ jobs: - uses: actions/checkout@722adc6 - uses: chrislennon/action-aws-cli@f0f8671 - name: tag - run: echo "::set-env name=TAG::`git describe --tags $GITHUB_SHA`" + run: | + TAG=`git describe --tags $GITHUB_SHA` + echo "TAG=$TAG" >> $GITHUB_ENV - name: Checkout Submodules run: git submodule update --init --recursive - name: Fetch Deps @@ -74,8 +80,8 @@ jobs: - uses: chrislennon/action-aws-cli@f0f8671 - name: tag run: | - $TRAVIS_TAG=git describe --tags $GITHUB_SHA - echo "::set-env name=TAG::$TRAVIS_TAG" + $TAG=git describe --tags $GITHUB_SHA + echo "TAG=$TAG" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - name: Checkout Submodules run: git submodule update --init --recursive - name: Fetch Deps diff --git a/.github/workflows/test_network_artifacts.yml b/.github/workflows/test_network_artifacts.yml index e425271c..7be9db06 100644 --- a/.github/workflows/test_network_artifacts.yml +++ b/.github/workflows/test_network_artifacts.yml @@ -17,7 +17,9 @@ jobs: - uses: actions/checkout@722adc6 - uses: chrislennon/action-aws-cli@f0f8671 - name: tag - run: echo "::set-env name=TAG::`git describe --tags $GITHUB_SHA`" + run: | + TAG=`git describe --tags $GITHUB_SHA` + echo "TAG=$TAG" >> $GITHUB_ENV - name: Checkout Submodules run: git submodule update --init --recursive - name: Fetch Deps @@ -37,7 +39,9 @@ jobs: - uses: actions/checkout@722adc6 - uses: chrislennon/action-aws-cli@f0f8671 - name: tag - run: echo "::set-env name=TAG::`git describe --tags $GITHUB_SHA`" + run: | + TAG=`git describe --tags $GITHUB_SHA` + echo "TAG=$TAG" >> $GITHUB_ENV - name: Checkout Submodules run: git submodule update --init --recursive - name: Fetch Deps @@ -57,7 +61,9 @@ jobs: - uses: actions/checkout@722adc6 - uses: chrislennon/action-aws-cli@f0f8671 - name: tag - run: echo "::set-env name=TAG::`git describe --tags $GITHUB_SHA`" + run: | + TAG=`git describe --tags $GITHUB_SHA` + echo "TAG=$TAG" >> $GITHUB_ENV - name: Checkout Submodules run: git submodule update --init --recursive - name: Fetch Deps @@ -74,8 +80,8 @@ jobs: - uses: chrislennon/action-aws-cli@f0f8671 - name: tag run: | - $TRAVIS_TAG=git describe --tags $GITHUB_SHA - echo "::set-env name=TAG::$TRAVIS_TAG" + $TAG=git describe --tags $GITHUB_SHA + echo "TAG=$TAG" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - name: Checkout Submodules run: git submodule update --init --recursive - name: Fetch Deps