Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Drop set-env in favor of outputs (#6476)

NyanKiyoshib8ea3aafa4b5
diff --git a/.github/workflows/test-env-cleanup.yml b/.github/workflows/test-env-cleanup.yml
index 224010690b..3c5c8062e2 100644
--- a/.github/workflows/test-env-cleanup.yml
+++ b/.github/workflows/test-env-cleanup.yml
@@ -12,7 +12,7 @@ jobs:
if: ${{ ((github.event.action == 'unlabeled') && (github.event.label.name == 'test deployment')) || ((github.event.action == 'closed') && contains(github.event.pull_request.labels.*.name, 'test deployment')) }}
runs-on: ubuntu-latest
steps:
- - uses: rlespinasse/[email protected]
+ - uses: rlespinasse/[email protected]
- name: Invoke deployment lambda
uses: gagoar/[email protected]
diff --git a/.github/workflows/test-env-deploy.yml b/.github/workflows/test-env-deploy.yml
index 705548db0a..cbf78ab744 100644
--- a/.github/workflows/test-env-deploy.yml
+++ b/.github/workflows/test-env-deploy.yml
@@ -13,12 +13,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- - uses: rlespinasse/[email protected]
+ - uses: rlespinasse/[email protected]
- name: Set domain
+ id: set-domain
# Set test instance domain based on branch name slug
run: |
- echo "::set-env name=domain::${{ env.GITHUB_HEAD_REF_SLUG_URL }}.api.saleor.rocks"
+ echo "::set-output name=domain::${{ env.GITHUB_HEAD_REF_SLUG_URL }}.api.saleor.rocks"
- name: Start deployment
uses: bobheadxi/[email protected]
@@ -61,5 +62,5 @@ jobs:
step: finish
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
- env_url: https://${{ env.domain }}/graphql/
+ env_url: https://${{ steps.set-domain.outputs.domain }}/graphql/
deployment_id: ${{ steps.deployment.outputs.deployment_id }}