Nuxt/.github/workflows/notify-nuxt-bridge.yml

25 lines
644 B
YAML
Raw Permalink Normal View History

name: bridge
on:
pull_request:
types: [closed]
paths:
- "packages/nuxt/src/app/composables/**"
permissions: {}
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@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3.0.0
with:
token: ${{ secrets.BRIDGE_GITHUB_TOKEN }}
repository: ${{ matrix.repo }}
event-type: port-upstream
client-payload: '{"url": "${{ github.event.pull_request.html_url }}"}'