mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
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 <rlau@redhat.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
8a93b371a3
commit
cfbbeea4a1
4
.github/workflows/auto-start-ci.yml
vendored
4
.github/workflows/auto-start-ci.yml
vendored
@ -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
|
||||
|
2
.github/workflows/build-tarball.yml
vendored
2
.github/workflows/build-tarball.yml
vendored
@ -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
|
||||
|
4
.github/workflows/commit-queue.yml
vendored
4
.github/workflows/commit-queue.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user