Skip to content

Commit 9e6aa75

Browse files
authored
Merge pull request #292 from MerginMaps/feat/releases-sync
Add workflow to sync milestones to releases repo
2 parents a2fcaf0 + bc40f65 commit 9e6aa75

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Notify releases repo
2+
3+
on:
4+
milestone:
5+
types: [created, edited]
6+
7+
jobs:
8+
notify:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Dispatch to releases repo
12+
env:
13+
GH_TOKEN: ${{ secrets.MM_RELEASES_SYNC_TOKEN }}
14+
run: |
15+
gh api repos/MerginMaps/releases/dispatches \
16+
--method POST \
17+
-f event_type=milestone-${{ github.event.action }} \
18+
-f 'client_payload[repo]=${{ github.repository }}' \
19+
-f 'client_payload[milestone_title]=${{ github.event.milestone.title }}' \
20+
-f 'client_payload[milestone_url]=${{ github.event.milestone.html_url }}'

0 commit comments

Comments
 (0)