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
This commit is contained in:
parent
90807bb0cf
commit
a946dba254
1 changed files with 2 additions and 1 deletions
3
.github/workflows/deploy-latest-staging.yaml
vendored
3
.github/workflows/deploy-latest-staging.yaml
vendored
|
@ -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 }}"
|
||||
}
|
||||
}'
|
||||
|
||||
|
|
Loading…
Reference in a new issue