Skip to content

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

Use url-safe test env branch slug

Cezary Miącz9c066585ec3e
diff --git a/.github/workflows/test-env-deploy.yml b/.github/workflows/test-env-deploy.yml
index fc94faa787..d60888b8c4 100644
--- a/.github/workflows/test-env-deploy.yml
+++ b/.github/workflows/test-env-deploy.yml
@@ -17,7 +17,7 @@ jobs:
- name: Set domain
# Set test instance domain based on branch name slug
run: |
- echo "::set-env name=domain::${{ env.GITHUB_HEAD_REF_SLUG }}.api.saleor.rocks"
+ echo "::set-env name=domain::${{ env.GITHUB_HEAD_REF_SLUG_URL }}.api.saleor.rocks"
- name: Start deployment
uses: bobheadxi/[email protected]
@@ -25,7 +25,7 @@ jobs:
with:
step: start
token: ${{ secrets.GITHUB_TOKEN }}
- env: ${{ env.GITHUB_HEAD_REF_SLUG }}
+ env: ${{ env.GITHUB_HEAD_REF_SLUG_URL }}
ref: ${{ github.head_ref }}
- name: Build and push
@@ -36,7 +36,7 @@ jobs:
account_id: ${{ secrets.AWS_ACCOUNT_ID }}
repo: saleor-testenvs
region: us-east-1
- tags: ${{ env.GITHUB_HEAD_REF_SLUG }},${{ github.sha }}
+ tags: ${{ env.GITHUB_HEAD_REF_SLUG_URL }},${{ github.sha }}
- name: Invoke deployment lambda
uses: gagoar/[email protected]
@@ -48,7 +48,7 @@ jobs:
Payload: >-
{
"action": "${{ github.event.action }}",
- "label": "${{ env.GITHUB_HEAD_REF_SLUG }}",
+ "label": "${{ env.GITHUB_HEAD_REF_SLUG_URL }}",
"image": "${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.us-east-1.amazonaws.com/saleor-testenvs:${{ github.sha }}"
}
LogType: Tail