Skip to content

Commit

Permalink
Use specific version instead of branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejewsky committed Sep 22, 2023
1 parent e066d8e commit b6f03ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,13 @@ jobs:
export GITHUB_TOKEN=$( \
curl --request GET --url ${{ secrets.VAULT_URL}} --header "Authorization: JWT ${{ secrets.VAULT_JWT }}" | jq -r .token \
)
CURRENT_VERSION=$(cat package.json | jq .version | xargs)
gh api /repos/saleor/saleor-cloud-deployments/dispatches \
--input - <<< '{
"event_type": "open-release-pull-request",
"client_payload": {
"project": "DASHBOARD",
"environment": "SANDBOX",
"version": "${{ github.ref_name }}"
"version": "$CURRENT_VERSION"
}
}'

0 comments on commit b6f03ce

Please sign in to comment.