Skip to content

Commit ac3eefe

Browse files
Update on-push-release.yml
1 parent 274fcb9 commit ac3eefe

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/on-push-release.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,24 @@ jobs:
5252
if: github.event_name == 'workflow_dispatch'
5353
shell: bash
5454
run: |
55+
json_payload='
56+
{
57+
"event_type": "journey-release",
58+
"client_payload": {
59+
"repository": "${{ github.repository }}",
60+
"packages": [
61+
"@bb/package1@1.0.0",
62+
"@bb/package2@1.0.0",
63+
"@bb/package3@1.0.0"
64+
]
65+
}
66+
}
67+
'
68+
5569
curl -L \
5670
-X POST \
5771
-H "Accept: application/vnd.github+json" \
5872
-H "Authorization: Bearer ${{ secrets.APPS_DISPATCH_PAT }}" \
5973
-H "X-GitHub-Api-Version: 2022-11-28" \
6074
https://api.github.com/repos/TomaszKasowicz/release-toil-app/dispatches \
61-
-d '{"event_type":"journey-release","client_payload":{"unit":false,"integration":true}}'
75+
-d '$json_payload'

0 commit comments

Comments
 (0)