From a946dba254fc64dfaae96be390514b8009183f1d Mon Sep 17 00:00:00 2001 From: GrzegorzKowalik Date: Mon, 4 Apr 2022 08:36:53 +0200 Subject: [PATCH] Fix deploying proper version to staging on new tag release (#1967) * Fix deploying proper version to staging on new tag release * Another approach * Remove leftovers --- .github/workflows/deploy-latest-staging.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-latest-staging.yaml b/.github/workflows/deploy-latest-staging.yaml index 1d588e986..a3814fb3a 100644 --- a/.github/workflows/deploy-latest-staging.yaml +++ b/.github/workflows/deploy-latest-staging.yaml @@ -55,13 +55,14 @@ jobs: export GITHUB_TOKEN=$( \ curl --request GET --url ${{ secrets.VAULT_URL}} --header "Authorization: JWT ${{ secrets.VAULT_JWT }}" | jq -r .token \ ) + gh api /repos/saleor/saleor-cloud-deployments/dispatches \ --input - <<< '{ "event_type": "open-release-pull-request", "client_payload": { "project": "DASHBOARD", "environment": "SANDBOX", - "version": "${{ github.event.inputs.git_ref }}" + "version": "${{ github.event.inputs.git_ref || github.ref_name }}" } }'