From 4813d913e3f9bb450ce94e2ca9c444d7dce44081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Wed, 14 Oct 2020 11:17:54 +0200 Subject: [PATCH] build: use GITHUB_ENV file to set env variables The other way is deprecated. PR-URL: https://github.com/nodejs/node/pull/35638 Reviewed-By: Richard Lau Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- .github/workflows/auto-start-ci.yml | 4 ++-- .github/workflows/build-tarball.yml | 2 +- .github/workflows/commit-queue.yml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/auto-start-ci.yml b/.github/workflows/auto-start-ci.yml index 79f3cbd9de64ab..7a430274d348da 100644 --- a/.github/workflows/auto-start-ci.yml +++ b/.github/workflows/auto-start-ci.yml @@ -26,8 +26,8 @@ jobs: - name: Set variables run: | - echo "::set-env name=REPOSITORY::$(echo ${{ github.repository }} | cut -d/ -f2)" - echo "::set-env name=OWNER::${{ github.repository_owner }}" + echo "REPOSITORY=$(echo ${{ github.repository }} | cut -d/ -f2)" >> $GITHUB_ENV + echo "OWNER=${{ github.repository_owner }}" >> $GITHUB_ENV # Get Pull Requests - name: Get Pull Requests diff --git a/.github/workflows/build-tarball.yml b/.github/workflows/build-tarball.yml index 81f121e2cf2ee0..7e91c8fd007284 100644 --- a/.github/workflows/build-tarball.yml +++ b/.github/workflows/build-tarball.yml @@ -57,7 +57,7 @@ jobs: - name: Extract tarball run: | tar xzf tarballs/*.tar.gz - echo "::set-env name=TAR_DIR::`basename tarballs/*.tar.gz .tar.gz`" + echo "TAR_DIR=`basename tarballs/*.tar.gz .tar.gz`" >> $GITHUB_ENV - name: Copy directories needed for testing run: | cp -r tools/node_modules $TAR_DIR/tools diff --git a/.github/workflows/commit-queue.yml b/.github/workflows/commit-queue.yml index 04b7f2be8ae7a9..3e6b0e49080653 100644 --- a/.github/workflows/commit-queue.yml +++ b/.github/workflows/commit-queue.yml @@ -40,8 +40,8 @@ jobs: - name: Set variables run: | - echo "::set-env name=REPOSITORY::$(echo ${{ github.repository }} | cut -d/ -f2)" - echo "::set-env name=OWNER::${{ github.repository_owner }}" + echo "REPOSITORY=$(echo ${{ github.repository }} | cut -d/ -f2)" >> $GITHUB_ENV + echo "OWNER=${{ github.repository_owner }}" >> $GITHUB_ENV - name: Get Pull Requests uses: octokit/graphql-action@v2.x