From b80f6c5f9676d5aad537f7176d548f6d31b1aea0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 27 Oct 2023 00:49:33 +0000 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 (cherry picked from commit 8d8de0a2f6438cd81723f1475116b2e40cae33a9) Signed-off-by: github-actions[bot] # Conflicts: # CHANGELOG.md --- .github/workflows/build_and_test_workflow.yml | 2 +- .github/workflows/cypress_workflow.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_and_test_workflow.yml b/.github/workflows/build_and_test_workflow.yml index 55497ea067b2..187b38c036a2 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 90bacdbefb57..cab511ddc551 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