Skip to content

Commit 91411ad

Browse files
committed
ci: add release event for balatrollm and balatro repos
1 parent 317c7a2 commit 91411ad

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/release_please.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,17 @@ jobs:
6666
- name: Notify consumer repo of new balatrobot release
6767
if: ${{ steps.release.outputs.release_created }}
6868
env:
69-
TARGET_REPO: "coder/balatrollm"
70-
TARGET_TOKEN: ${{ secrets.TARGET_REPO_PAT }}
69+
BALATROLLM_REPO: "coder/balatrollm"
70+
BALATROLLM_TOKEN: ${{ secrets.BALATROLLM_TOKEN }}
71+
BALATRO_REPO: "S1M0N38/balatro"
72+
BALATRO_TOKEN: ${{ secrets.BALATRO_TOKEN }}
7173
run: |
7274
VERSION="${{ steps.release.outputs.version }}"
7375
curl -X POST -H "Accept: application/vnd.github+json" \
74-
-H "Authorization: token $TARGET_TOKEN" \
75-
https://api.github.com/repos/$TARGET_REPO/dispatches \
76+
-H "Authorization: token $BALATROLLM_TOKEN" \
77+
https://api.github.com/repos/$BALATROLLM_REPO/dispatches \
78+
-d "{\"event_type\":\"balatrobot_release\",\"client_payload\":{\"version\":\"$VERSION\"}}"
79+
curl -X POST -H "Accept: application/vnd.github+json" \
80+
-H "Authorization: token $BALATRO_TOKEN" \
81+
https://api.github.com/repos/$BALATRO_REPO/dispatches \
7682
-d "{\"event_type\":\"balatrobot_release\",\"client_payload\":{\"version\":\"$VERSION\"}}"

0 commit comments

Comments
 (0)