Skip to content

Commit

Permalink
Fix releasing workflow (#5001)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejewsky authored Jun 27, 2024
1 parent 84d2083 commit e8ebb41
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/deploy-staging-and-prepare-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,17 @@ 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": "${{ env.VERSION }}"
}
}'
version=$(cat package.json | jq -r .version)
payload=$(jq --null-input --arg version "$version" '{
"event_type": "open-release-pull-request",
"client_payload": {
"project": "DASHBOARD",
"environment": "SANDBOX",
"version": $version
}
}')
gh api /repos/saleor/saleor-cloud-deployments/dispatches --input - <<< $payload
run-tests-on-release:
needs: [prepare-release, build]
Expand Down

0 comments on commit e8ebb41

Please sign in to comment.