From 96aad9d7448b70aab67c37b98798a7d04794f330 Mon Sep 17 00:00:00 2001 From: Karolina Rakoczy Date: Tue, 25 Oct 2022 13:19:20 +0200 Subject: [PATCH] remove set-output command (#2450) --- .github/workflows/e2e.yml | 4 ++-- .github/workflows/test-env-cleanup.yml | 2 +- .github/workflows/test-env-deploy.yml | 8 ++++---- .github/workflows/tests-nightly.yml | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index b2bfc6c1f..998ffa8fd 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -96,7 +96,7 @@ jobs: - name: Set domain id: set-domain run: | - echo "::set-output name=domain::${{ env.GITHUB_HEAD_REF_SLUG_URL }}.dashboard.saleor.rocks" + echo "domain=${{ env.GITHUB_HEAD_REF_SLUG_URL }}.dashboard.saleor.rocks" >> $GITHUB_OUTPUT - name: Get API_URI id: api_uri # Search for API_URI in PR description and use default if not defined @@ -106,7 +106,7 @@ jobs: pattern: (http|https)://[a-zA-Z0-9.-]+/graphql/? fallback_uri: ${{ secrets.CYPRESS_API_URI }} run: | - echo "::set-output name=custom_api_uri::$(echo $pull_request_body | grep -Eo "$prefix$pattern" | sed s/$prefix// | head -n 1 | { read custom_uri; if [ -z "$custom_uri" ]; then echo "$fallback_uri"; else echo "$custom_uri"; fi })" + echo "custom_api_uri=$(echo $pull_request_body | grep -Eo "$prefix$pattern" | sed s/$prefix// | head -n 1 | { read custom_uri; if [ -z "$custom_uri" ]; then echo "$fallback_uri"; else echo "$custom_uri"; fi })" >> $GITHUB_OUTPUT - name: Checkout uses: actions/checkout@v2 diff --git a/.github/workflows/test-env-cleanup.yml b/.github/workflows/test-env-cleanup.yml index eb0bb5104..1ea8811e2 100644 --- a/.github/workflows/test-env-cleanup.yml +++ b/.github/workflows/test-env-cleanup.yml @@ -14,7 +14,7 @@ jobs: id: set-domain # Set test instance domain based on branch name slug run: | - echo "::set-output name=domain::${{ env.GITHUB_HEAD_REF_SLUG_URL }}.dashboard.saleor.rocks" + echo "domain=${{ env.GITHUB_HEAD_REF_SLUG_URL }}.dashboard.saleor.rocks" >> $GITHUB_OUTPUT - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v1 diff --git a/.github/workflows/test-env-deploy.yml b/.github/workflows/test-env-deploy.yml index 1505d9e65..64c5444b8 100644 --- a/.github/workflows/test-env-deploy.yml +++ b/.github/workflows/test-env-deploy.yml @@ -54,7 +54,7 @@ jobs: prefix: API_URI= pattern: (http|https)://[a-zA-Z0-9.-]+/graphql/? run: | - echo "::set-output name=custom_api_uri::$(echo $pull_request_body | grep -Eo "$prefix$pattern" | sed s/$prefix// | head -n 1)" + echo "custom_api_uri=$(echo $pull_request_body | grep -Eo "$prefix$pattern" | sed s/$prefix// | head -n 1)" >> $GITHUB_OUTPUT - name: Get MARKETPLACE_URL id: marketplace_url # Search for MARKETPLACE_URL in PR description @@ -63,7 +63,7 @@ jobs: prefix: MARKETPLACE_URL= pattern: (http|https)://[a-zA-Z0-9.-]+/? run: | - echo "::set-output name=custom_marketplace_url::$(echo $pull_request_body | grep -Eo "$prefix$pattern" | sed s/$prefix// | head -n 1)" + echo "custom_marketplace_url=$(echo $pull_request_body | grep -Eo "$prefix$pattern" | sed s/$prefix// | head -n 1)" >> $GITHUB_OUTPUT - name: Run build env: # Use custom API_URI or the default one @@ -81,7 +81,7 @@ jobs: id: set-domain # Set test instance domain based on branch name slug run: | - echo "::set-output name=domain::${{ env.GITHUB_HEAD_REF_SLUG_URL }}.dashboard.saleor.rocks" + echo "{domain}=${{ env.GITHUB_HEAD_REF_SLUG_URL }}.dashboard.saleor.rocks" >> $GITHUB_OUTPUT - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v1 with: @@ -189,7 +189,7 @@ jobs: pattern: (http|https)://[a-zA-Z0-9.-]+/graphql/? fallback_uri: ${{ secrets.CYPRESS_API_URI }} run: | - echo "::set-output name=custom_api_uri::$(echo $pull_request_body | grep -Eo "$prefix$pattern" | sed s/$prefix// | head -n 1 | { read custom_uri; if [ -z "$custom_uri" ]; then echo "$fallback_uri"; else echo "$custom_uri"; fi })" + echo "custom_api_uri=$(echo $pull_request_body | grep -Eo "$prefix$pattern" | sed s/$prefix// | head -n 1 | { read custom_uri; if [ -z "$custom_uri" ]; then echo "$fallback_uri"; else echo "$custom_uri"; fi })" >> $GITHUB_OUTPUT - name: Setup Node uses: actions/setup-node@v1 with: diff --git a/.github/workflows/tests-nightly.yml b/.github/workflows/tests-nightly.yml index 0a094ebd0..7a9a66c7d 100644 --- a/.github/workflows/tests-nightly.yml +++ b/.github/workflows/tests-nightly.yml @@ -106,14 +106,14 @@ jobs: id: get-typed-env-uri if: ${{ github.event.inputs.environment == 'Other' }} run: | - echo "::set-output name=ENV_URI::${{github.event.inputs.otherEnvironment}}" + echo "ENV_URI=${{github.event.inputs.otherEnvironment}}" >> $GITHUB_OUTPUT - name: Get env id: get-env-uri env: DEFAULT_ENV_URI: 'https://automation-dashboard.staging.saleor.cloud/' TYPED_ENV_URI: '' run: | - echo "::set-output name=ENV_URI::${{ steps.get-typed-env-uri.outputs.ENV_URI || github.event.inputs.environment || env.DEFAULT_ENV_URI }}" + echo "ENV_URI=${{ steps.get-typed-env-uri.outputs.ENV_URI || github.event.inputs.environment || env.DEFAULT_ENV_URI }}" >> $GITHUB_OUTPUT - name: Setup Node uses: actions/setup-node@v3 with: @@ -195,7 +195,7 @@ jobs: env: version: ${{github.event.client_payload.version}} run: | - echo "::set-output name=ref::$(echo $version | grep -ohE "[0-9]\.[0-9]+" )" + echo "ref=$(echo $version | grep -ohE "[0-9]\.[0-9]+" )" >> $GITHUB_OUTPUT - name: Checkout uses: actions/checkout@v3