remove set-output command (#2450)
This commit is contained in:
parent
8f1a291c65
commit
96aad9d744
4 changed files with 10 additions and 10 deletions
4
.github/workflows/e2e.yml
vendored
4
.github/workflows/e2e.yml
vendored
|
@ -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
|
||||
|
||||
|
|
2
.github/workflows/test-env-cleanup.yml
vendored
2
.github/workflows/test-env-cleanup.yml
vendored
|
@ -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
|
||||
|
|
8
.github/workflows/test-env-deploy.yml
vendored
8
.github/workflows/test-env-deploy.yml
vendored
|
@ -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:
|
||||
|
|
6
.github/workflows/tests-nightly.yml
vendored
6
.github/workflows/tests-nightly.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue