Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Use GITHUB_OUTPUT envvar instead of set-output command #2828

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prev-version-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-backwards-compatiblity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down