From bc40f6505d45dd56169b2fd22de9ca0c8c661e59 Mon Sep 17 00:00:00 2001 From: Tomas Mizera Date: Tue, 17 Feb 2026 16:34:15 +0100 Subject: [PATCH] Add workflow to sync milestones to releases repo Co-Authored-By: Claude Opus 4.6 --- .github/workflows/notify-milestone.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/notify-milestone.yml diff --git a/.github/workflows/notify-milestone.yml b/.github/workflows/notify-milestone.yml new file mode 100644 index 0000000..b49f382 --- /dev/null +++ b/.github/workflows/notify-milestone.yml @@ -0,0 +1,20 @@ +name: Notify releases repo + +on: + milestone: + types: [created, edited] + +jobs: + notify: + runs-on: ubuntu-latest + steps: + - name: Dispatch to releases repo + env: + GH_TOKEN: ${{ secrets.MM_RELEASES_SYNC_TOKEN }} + run: | + gh api repos/MerginMaps/releases/dispatches \ + --method POST \ + -f event_type=milestone-${{ github.event.action }} \ + -f 'client_payload[repo]=${{ github.repository }}' \ + -f 'client_payload[milestone_title]=${{ github.event.milestone.title }}' \ + -f 'client_payload[milestone_url]=${{ github.event.milestone.html_url }}'