From 8d8de0a2f6438cd81723f1475116b2e40cae33a9 Mon Sep 17 00:00:00 2001 From: Vijay Vavdiya Date: Fri, 27 Oct 2023 06:17:18 +0530 Subject: [PATCH] [OSCI][CI] replace deprecated `set-output` (#5340) set-output command for workflows is deprecated according to Github documentation. Update done using GITHUB_OUTPUT environment files. More details here: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/#examples Issues Resolved /~https://github.com/opensearch-project/OpenSearch-Dashboards/issues/5322 * replaced set-output * CI replaced set-output * Updated CHANGELOG.md for #5322 [CI] Replace usage of deprecated `set-output` in workflows Signed-off-by: Vijay Vavdiya Co-authored-by: Josh Romero --- .github/workflows/build_and_test_workflow.yml | 2 +- .github/workflows/cypress_workflow.yml | 2 +- CHANGELOG.md | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_and_test_workflow.yml b/.github/workflows/build_and_test_workflow.yml index a9175ad23f8b..62e527e7fb24 100644 --- a/.github/workflows/build_and_test_workflow.yml +++ b/.github/workflows/build_and_test_workflow.yml @@ -352,7 +352,7 @@ jobs: id: verify-opensearch-exists run: | if curl -I -L ${{ env.OPENSEARCH_URL }}; then - echo "::set-output name=version-exists::true" + echo "name=version-exists::true" >> $GITHUB_OUTPUT fi - name: Skipping tests diff --git a/.github/workflows/cypress_workflow.yml b/.github/workflows/cypress_workflow.yml index 1853aad0d69b..14975e23b17a 100644 --- a/.github/workflows/cypress_workflow.yml +++ b/.github/workflows/cypress_workflow.yml @@ -128,7 +128,7 @@ jobs: - name: Get Cypress version id: cypress_version run: | - echo "::set-output name=cypress_version::$(cat ./${{ env.FTR_PATH }}/package.json | jq '.devDependencies.cypress' | tr -d '"')" + echo "name=cypress_version::$(cat ./${{ env.FTR_PATH }}/package.json | jq '.devDependencies.cypress' | tr -d '"')" >> $GITHUB_OUTPUT - name: Cache Cypress id: cache-cypress diff --git a/CHANGELOG.md b/CHANGELOG.md index 20e8e40120a0..c1a98066e2de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -82,6 +82,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - [CI] Enable inputs for manually triggered Cypress test jobs ([#5134](/~https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5134)) - [CI] Add `NODE_OPTIONS` and disable disk allocation threshold ([#5172](/~https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5172)) - [CI] Supprt CI Groups for Cypress test jobs ([#5298](/~https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5298)) +- [CI] Replace usage of deprecated `set-output` in workflows ([#5340](/~https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5340)) ### 📝 Documentation @@ -807,4 +808,4 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### 🔩 Tests -- Update caniuse to fix failed integration tests ([#2322](/~https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2322)) \ No newline at end of file +- Update caniuse to fix failed integration tests ([#2322](/~https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2322))