Use GITHUB_OUTPUT
instead of deprecated ::set-output
(#3098)
This commit is contained in:
parent
12650a2a7d
commit
ba6c713dd7
6 changed files with 13 additions and 13 deletions
2
.github/workflows/deploy-and-run-cypress.yml
vendored
2
.github/workflows/deploy-and-run-cypress.yml
vendored
|
@ -67,7 +67,7 @@ jobs:
|
|||
id: set-domain
|
||||
# Set test instance domain based on branch name slug
|
||||
run: |
|
||||
echo "::set-output name=domain::test-deploy-${{ env.GITHUB_HEAD_REF_SLUG_URL }}.dashboard.saleor.rocks"
|
||||
echo "domain=test-deploy-${{ env.GITHUB_HEAD_REF_SLUG_URL }}.dashboard.saleor.rocks" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Configure AWS credentials
|
||||
uses: aws-actions/configure-aws-credentials@v1
|
||||
|
|
4
.github/workflows/e2e.yml
vendored
4
.github/workflows/e2e.yml
vendored
|
@ -98,7 +98,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
|
||||
|
@ -108,7 +108,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/publish-containers.yml
vendored
2
.github/workflows/publish-containers.yml
vendored
|
@ -22,7 +22,7 @@ jobs:
|
|||
id: image
|
||||
run: |
|
||||
IMAGE_NAME=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')
|
||||
echo ::set-output name=image_name::ghcr.io/${IMAGE_NAME}
|
||||
echo "image_name=ghcr.io/${IMAGE_NAME}" >> $GITHUB_OUTPUT
|
||||
|
||||
# Tags stable versions as :latest
|
||||
# Pre-releases, alphas, etc. as :snapshot
|
||||
|
|
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
|
@ -58,7 +58,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 APPS_MARKETPLACE_API_URI
|
||||
id: apps_marketplace_api_uri
|
||||
# Search for APPS_MARKETPLACE_API_URI in PR description
|
||||
|
@ -67,7 +67,7 @@ jobs:
|
|||
prefix: APPS_MARKETPLACE_API_URI=
|
||||
pattern: (http|https)://[a-zA-Z0-9.-]+[a-zA-Z0-9/-]+/?
|
||||
run: |
|
||||
echo "::set-output name=custom_apps_marketplace_api_uri::$(echo "$pull_request_body" | grep -Eo "$prefix$pattern" | sed s/$prefix// | head -n 1)"
|
||||
echo "custom_apps_marketplace_api_uri=$(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
|
||||
|
@ -85,7 +85,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:
|
||||
|
@ -193,7 +193,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@v3
|
||||
with:
|
||||
|
|
8
.github/workflows/tests-nightly.yml
vendored
8
.github/workflows/tests-nightly.yml
vendored
|
@ -110,15 +110,15 @@ 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:
|
||||
|
@ -205,7 +205,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