Skip to content

Commit cfbbeea

Browse files
committed
build: use GITHUB_ENV file to set env variables
The other way is deprecated. PR-URL: #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>
1 parent 8a93b37 commit cfbbeea

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/auto-start-ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626

2727
- name: Set variables
2828
run: |
29-
echo "::set-env name=REPOSITORY::$(echo ${{ github.repository }} | cut -d/ -f2)"
30-
echo "::set-env name=OWNER::${{ github.repository_owner }}"
29+
echo "REPOSITORY=$(echo ${{ github.repository }} | cut -d/ -f2)" >> $GITHUB_ENV
30+
echo "OWNER=${{ github.repository_owner }}" >> $GITHUB_ENV
3131
3232
# Get Pull Requests
3333
- name: Get Pull Requests

.github/workflows/build-tarball.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
- name: Extract tarball
5858
run: |
5959
tar xzf tarballs/*.tar.gz
60-
echo "::set-env name=TAR_DIR::`basename tarballs/*.tar.gz .tar.gz`"
60+
echo "TAR_DIR=`basename tarballs/*.tar.gz .tar.gz`" >> $GITHUB_ENV
6161
- name: Copy directories needed for testing
6262
run: |
6363
cp -r tools/node_modules $TAR_DIR/tools

.github/workflows/commit-queue.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ jobs:
4040

4141
- name: Set variables
4242
run: |
43-
echo "::set-env name=REPOSITORY::$(echo ${{ github.repository }} | cut -d/ -f2)"
44-
echo "::set-env name=OWNER::${{ github.repository_owner }}"
43+
echo "REPOSITORY=$(echo ${{ github.repository }} | cut -d/ -f2)" >> $GITHUB_ENV
44+
echo "OWNER=${{ github.repository_owner }}" >> $GITHUB_ENV
4545
4646
- name: Get Pull Requests
4747
uses: octokit/graphql-action@v2.x

0 commit comments

Comments
 (0)