From b988ec39dcfa8281fd61e1db6627b8eca1dd765a Mon Sep 17 00:00:00 2001 From: jongwooo Date: Tue, 11 Apr 2023 21:54:33 +0900 Subject: [PATCH] Replace deprecated command with environment file --- ...patibility-test-previous-major-version.yml | 4 ++-- .github/workflows/continuous-integration.yml | 20 +++++++++---------- .../workflows/prev-version-integration.yaml | 4 ++-- .github/workflows/publish.yml | 4 ++-- .../release-backwards-compatiblity.yml | 4 ++-- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/browser-compatibility-test-previous-major-version.yml b/.github/workflows/browser-compatibility-test-previous-major-version.yml index c0abb6d137..9b8fc1299e 100644 --- a/.github/workflows/browser-compatibility-test-previous-major-version.yml +++ b/.github/workflows/browser-compatibility-test-previous-major-version.yml @@ -29,7 +29,7 @@ jobs: id: get-version run: | current_version=$(.github/script/get-current-version) - echo "::set-output name=version-number::$((${current_version%%.*} - 1))" + echo "version-number=$((${current_version%%.*} - 1))" >> $GITHUB_OUTPUT browser-compatibility-audio-previous-major-version: @@ -304,4 +304,4 @@ jobs: - name: Install Axios run: npm install axios - name: Send Slack Message - run: node .github/script/send-test-report.js ${{ secrets.SLACK_JS_SDK_DEV_CORE_PREV_VER_WEBHOOK }} ${{ env.WORKFLOW_URL}} ${{ env.WORKFLOW_JOBS_STATUS }} \ No newline at end of file + run: node .github/script/send-test-report.js ${{ secrets.SLACK_JS_SDK_DEV_CORE_PREV_VER_WEBHOOK }} ${{ env.WORKFLOW_URL}} ${{ env.WORKFLOW_JOBS_STATUS }} diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 3cd00faa9a..ed987f6920 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -45,7 +45,7 @@ run: | source ${GITHUB_WORKSPACE}/integration/js/script/need-integ-test check_if_integ_tests_required - echo ::set-output name=integ_test_required::$requires_integration_test + echo "integ_test_required=$requires_integration_test" >> $GITHUB_OUTPUT - name: Setup GitHub Actions Host if: steps.test_needed.outputs.integ_test_required == 'true' uses: ./.github/actions/setup-integration-test @@ -71,7 +71,7 @@ run: | source ${GITHUB_WORKSPACE}/integration/js/script/need-integ-test check_if_integ_tests_required - echo ::set-output name=integ_test_required::$requires_integration_test + echo "integ_test_required=$requires_integration_test" >> $GITHUB_OUTPUT - name: Setup GitHub Actions Host if: steps.test_needed.outputs.integ_test_required == 'true' uses: ./.github/actions/setup-integration-test @@ -97,7 +97,7 @@ run: | source ${GITHUB_WORKSPACE}/integration/js/script/need-integ-test check_if_integ_tests_required - echo ::set-output name=integ_test_required::$requires_integration_test + echo "integ_test_required=$requires_integration_test" >> $GITHUB_OUTPUT - name: Setup GitHub Actions Host if: steps.test_needed.outputs.integ_test_required == 'true' uses: ./.github/actions/setup-integration-test @@ -126,7 +126,7 @@ run: | source ${GITHUB_WORKSPACE}/integration/js/script/need-integ-test check_if_integ_tests_required - echo ::set-output name=integ_test_required::$requires_integration_test + echo "integ_test_required=$requires_integration_test" >> $GITHUB_OUTPUT - name: Setup GitHub Actions Host if: steps.test_needed.outputs.integ_test_required == 'true' uses: ./.github/actions/setup-integration-test @@ -154,7 +154,7 @@ run: | source ${GITHUB_WORKSPACE}/integration/js/script/need-integ-test check_if_integ_tests_required - echo ::set-output name=integ_test_required::$requires_integration_test + echo "integ_test_required=$requires_integration_test" >> $GITHUB_OUTPUT - name: Setup GitHub Actions Host if: steps.test_needed.outputs.integ_test_required == 'true' uses: ./.github/actions/setup-integration-test @@ -183,7 +183,7 @@ run: | source ${GITHUB_WORKSPACE}/integration/js/script/need-integ-test check_if_integ_tests_required - echo ::set-output name=integ_test_required::$requires_integration_test + echo "integ_test_required=$requires_integration_test" >> $GITHUB_OUTPUT - name: Setup GitHub Actions Host if: steps.test_needed.outputs.integ_test_required == 'true' uses: ./.github/actions/setup-integration-test @@ -215,7 +215,7 @@ run: | source ${GITHUB_WORKSPACE}/integration/js/script/need-integ-test check_if_integ_tests_required - echo ::set-output name=integ_test_required::$requires_integration_test + echo "integ_test_required=$requires_integration_test" >> $GITHUB_OUTPUT - name: Setup GitHub Actions Host if: steps.test_needed.outputs.integ_test_required == 'true' uses: ./.github/actions/setup-integration-test @@ -241,7 +241,7 @@ run: | source ${GITHUB_WORKSPACE}/integration/js/script/need-integ-test check_if_integ_tests_required - echo ::set-output name=integ_test_required::$requires_integration_test + echo "integ_test_required=$requires_integration_test" >> $GITHUB_OUTPUT - name: Setup GitHub Actions Host if: steps.test_needed.outputs.integ_test_required == 'true' uses: ./.github/actions/setup-integration-test @@ -267,7 +267,7 @@ run: | source ${GITHUB_WORKSPACE}/integration/js/script/need-integ-test check_if_integ_tests_required - echo ::set-output name=integ_test_required::$requires_integration_test + echo "integ_test_required=$requires_integration_test" >> $GITHUB_OUTPUT - name: Setup GitHub Actions Host if: steps.test_needed.outputs.integ_test_required == 'true' uses: ./.github/actions/setup-integration-test @@ -278,4 +278,4 @@ aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - name: Run Video Test App Integ Test if: steps.test_needed.outputs.integ_test_required == 'true' - run: npm run test:integration-video-test-app \ No newline at end of file + run: npm run test:integration-video-test-app diff --git a/.github/workflows/prev-version-integration.yaml b/.github/workflows/prev-version-integration.yaml index 560c1b981a..2806401899 100644 --- a/.github/workflows/prev-version-integration.yaml +++ b/.github/workflows/prev-version-integration.yaml @@ -32,7 +32,7 @@ jobs: run: | prev_version=$(.github/script/get-prev-version) echo "Previous version:" $prev_version - echo ::set-output name=prev_version::$prev_version + echo "prev_version=$prev_version" >> $GITHUB_OUTPUT - name: Create a Job ID id: create-job-id uses: filipstefansson/uuid-action@ce29ebbb0981ac2448c2e406e848bfaa30ddf04c @@ -81,4 +81,4 @@ jobs: - name: Setup userArn run: integration/js/script/test-setup - name: Run Messaging Integration Test - run: npm run test:integration-messaging \ No newline at end of file + run: npm run test:integration-messaging diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 132ba78414..393dd2d122 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -26,7 +26,7 @@ jobs: run: | npm_publish_tag=$(.github/script/get-npm-tag.js) echo "Received NPM publish tag:" $npm_publish_tag - echo ::set-output name=npm_tag::$npm_publish_tag + echo "npm_tag=$npm_publish_tag" >> $GITHUB_OUTPUT - name: Publish to NPM with tag run: npm publish --tag ${{ steps.npm_tag.outputs.npm_tag }} env: @@ -63,7 +63,7 @@ jobs: if [[ *$npm_version* = *$current_version* ]] then echo "Version is published to npm:" $current_version - echo ::set-output name=npm_version::$current_version + echo "npm_version=$current_version" >> $GITHUB_OUTPUT break fi diff --git a/.github/workflows/release-backwards-compatiblity.yml b/.github/workflows/release-backwards-compatiblity.yml index 6bdd3b0ae6..80a6af1fb6 100644 --- a/.github/workflows/release-backwards-compatiblity.yml +++ b/.github/workflows/release-backwards-compatiblity.yml @@ -33,7 +33,7 @@ jobs: fetch-depth: 0 - name: Version check for backward compatibility check id: version-check - run: echo "::set-output name=run-check::$(node .github/script/backward-compatibility-run-check.js)" + run: echo "run-check=$(node .github/script/backward-compatibility-run-check.js)" >> $GITHUB_OUTPUT release-integ-test: name: Run Backwards Compatible Integration Tests with Release Tarball @@ -90,4 +90,4 @@ jobs: - name: Setup userArn run: integration/js/script/test-setup - name: Run Messaging Integration Test - run: npm run test:integration-messaging \ No newline at end of file + run: npm run test:integration-messaging