From 0adf977f7982715aa1ad271eb5bb07b87c6ed066 Mon Sep 17 00:00:00 2001 From: pvpswaghd <44018990+pvpswaghd@users.noreply.github.com> Date: Sun, 19 Mar 2023 13:18:06 +0800 Subject: [PATCH 1/2] fixed deprecated features in GitHub actions --- .github/workflows/build.yml | 50 ++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b1f1fa5550..32aec48352 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -107,12 +107,12 @@ jobs: echo "Full Run: $FULL_RUN" echo "Skip Python: $SKIP_PYTHON" echo "Include Windows: $INCLUDE_WINDOWS" - echo "::set-output name=COMMIT_MSG::$COMMIT_MSG" - echo "::set-output name=SKIP_CI::$SKIP_CI" - echo "::set-output name=SKIP_CACHE::$SKIP_CACHE" - echo "::set-output name=FULL_RUN::$FULL_RUN" - echo "::set-output name=SKIP_PYTHON::$SKIP_PYTHON" - echo "::set-output name=INCLUDE_WINDOWS::$INCLUDE_WINDOWS" + echo "COMMIT_MSG=$COMMIT_MSG" >> $GITHUB_OUTPUT + echo "SKIP_CI=$SKIP_CI" >> $GITHUB_OUTPUT + echo "SKIP_CACHE=$SKIP_CACHE" >> $GITHUB_OUTPUT + echo "FULL_RUN=$FULL_RUN" >> $GITHUB_OUTPUT + echo "SKIP_PYTHON=$SKIP_PYTHON" >> $GITHUB_OUTPUT + echo "INCLUDE_WINDOWS=$INCLUDE_WINDOWS" >> $GITHUB_OUTPUT env: SKIP_CI: ${{ contains(github.event.head_commit.message, '[ci-skip]') }} SKIP_CACHE: ${{ contains(github.event.head_commit.message, '[ci-skip-cache]') }} @@ -130,12 +130,12 @@ jobs: echo "Full Run: $FULL_RUN" echo "Skip Python: $SKIP_PYTHON" echo "Include Windows: $INCLUDE_WINDOWS" - echo "::set-output name=COMMIT_MSG::$COMMIT_MSG" - echo "::set-output name=SKIP_CI::$SKIP_CI" - echo "::set-output name=SKIP_CACHE::$SKIP_CACHE" - echo "::set-output name=FULL_RUN::$FULL_RUN" - echo "::set-output name=SKIP_PYTHON::$SKIP_PYTHON" - echo "::set-output name=INCLUDE_WINDOWS::$INCLUDE_WINDOWS" + echo "COMMIT_MSG=$COMMIT_MSG" >> $GITHUB_OUTPUT + echo "SKIP_CI=$SKIP_CI" >> $GITHUB_OUTPUT + echo "SKIP_CACHE=$SKIP_CACHE" >> $GITHUB_OUTPUT + echo "FULL_RUN=$FULL_RUN" >> $GITHUB_OUTPUT + echo "SKIP_PYTHON=$SKIP_PYTHON" >> $GITHUB_OUTPUT + echo "INCLUDE_WINDOWS=$INCLUDE_WINDOWS" >> $GITHUB_OUTPUT env: SKIP_CI: ${{ contains(github.event.pull_request.title, '[ci-skip]') || contains(env.COMMIT_MSG, '[ci-skip]') }} SKIP_CACHE: ${{ contains(github.event.pull_request.title, '[ci-skip-cache]') || contains(env.COMMIT_MSG, '[ci-skip-cache]') }} @@ -153,12 +153,12 @@ jobs: echo "Full Run: $FULL_RUN" echo "Skip Python: $SKIP_PYTHON" echo "Include Windows: $INCLUDE_WINDOWS" - echo "::set-output name=COMMIT_MSG::$COMMIT_MSG" - echo "::set-output name=SKIP_CI::$SKIP_CI" - echo "::set-output name=SKIP_CACHE::$SKIP_CACHE" - echo "::set-output name=FULL_RUN::$FULL_RUN" - echo "::set-output name=SKIP_PYTHON::$SKIP_PYTHON" - echo "::set-output name=INCLUDE_WINDOWS::$INCLUDE_WINDOWS" + echo "COMMIT_MSG=$COMMIT_MSG" >> $GITHUB_OUTPUT + echo "SKIP_CI=$SKIP_CI" >> $GITHUB_OUTPUT + echo "SKIP_CACHE=$SKIP_CACHE" >> $GITHUB_OUTPUT + echo "FULL_RUN=$FULL_RUN" >> $GITHUB_OUTPUT + echo "SKIP_PYTHON=$SKIP_PYTHON" >> $GITHUB_OUTPUT + echo "INCLUDE_WINDOWS=$INCLUDE_WINDOWS" >> $GITHUB_OUTPUT env: SKIP_CI: false SKIP_CACHE: ${{ github.event.inputs.ci-skip-cache }} @@ -212,7 +212,7 @@ jobs: # Yarn Cache - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT if: ${{ needs.initialize.outputs.SKIP_CACHE == 'false' }} - name: Setup yarn cache @@ -453,7 +453,7 @@ jobs: # Yarn Cache - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT if: ${{ needs.initialize.outputs.SKIP_CACHE == 'false' }} - name: Setup yarn cache @@ -569,7 +569,7 @@ jobs: # Yarn Cache - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT if: ${{ needs.initialize.outputs.SKIP_CACHE == 'false' }} - name: Setup yarn cache @@ -830,7 +830,7 @@ jobs: # Yarn Cache - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT if: ${{ needs.initialize.outputs.SKIP_CACHE == 'false' }} - name: Setup yarn cache @@ -1115,7 +1115,7 @@ jobs: # Yarn Cache - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir::$(yarn cache dir)" >> $GITHUB_OUTPUT if: ${{ needs.initialize.outputs.SKIP_CACHE == 'false' }} - name: Setup yarn cache @@ -1281,7 +1281,7 @@ jobs: # Yarn Cache - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT if: ${{ needs.initialize.outputs.SKIP_CACHE == 'false' }} - name: Setup yarn cache @@ -1414,7 +1414,7 @@ jobs: # Yarn Cache - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT if: ${{ needs.initialize.outputs.SKIP_CACHE == 'false' }} - name: Setup yarn cache From 203f812389a1605fe467eed503ed05c99827a8b0 Mon Sep 17 00:00:00 2001 From: pvpswaghd <44018990+pvpswaghd@users.noreply.github.com> Date: Mon, 20 Mar 2023 01:40:07 +0800 Subject: [PATCH 2/2] Update --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 32aec48352..23c7edbdd6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1115,7 +1115,7 @@ jobs: # Yarn Cache - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "dir::$(yarn cache dir)" >> $GITHUB_OUTPUT + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT if: ${{ needs.initialize.outputs.SKIP_CACHE == 'false' }} - name: Setup yarn cache