From ce18fdaf9f028678a84f5004b7a0902a4ebec67f Mon Sep 17 00:00:00 2001 From: Ryota Watanabe <43837308+wattanx@users.noreply.github.com> Date: Fri, 15 Dec 2023 21:44:22 +0900 Subject: [PATCH] ci: notify `nuxt/bridge` when composables change (#24752) --- .github/workflows/notify-nuxt-bridge.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/notify-nuxt-bridge.yml diff --git a/.github/workflows/notify-nuxt-bridge.yml b/.github/workflows/notify-nuxt-bridge.yml new file mode 100644 index 0000000000..50f06c6ab5 --- /dev/null +++ b/.github/workflows/notify-nuxt-bridge.yml @@ -0,0 +1,21 @@ +name: bridge +on: + pull_request: + types: [closed] + paths: + - "packages/nuxt/src/app/composables/**" +jobs: + notify: + if: github.event.pull_request.merged == true + strategy: + matrix: + repo: ["nuxt/bridge"] + runs-on: ubuntu-latest + steps: + - name: repository dispatch + uses: peter-evans/repository-dispatch@bf47d102fdb849e755b0b0023ea3e81a44b6f570 #v2.1.2 + with: + token: ${{ secrets.BRIDGE_GITHUB_TOKEN }} + repository: ${{ matrix.repo }} + event-type: port-upstream + client-payload: '{"url": "${{ github.event.pull_request.html_url }}"}'