ci: notify nuxt/bridge when composables change (#24752)

This commit is contained in:
Ryota Watanabe 2023-12-15 21:44:22 +09:00 committed by GitHub
parent 24bedc5e56
commit ce18fdaf9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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