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 }}"}'