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 }}" } }'