Skip to content

ci: notify dependent repos on push to main #1

ci: notify dependent repos on push to main

ci: notify dependent repos on push to main #1

name: Notify dependent repos
on:
push:
branches: [main]
jobs:
dispatch:
runs-on: ubuntu-latest
strategy:
matrix:
repo:
- Oliveyoung_Crawling
- Oliveyoung_Pipeline
- INCI_Pipeline
- GraphRAG_Pipeline
steps:
- name: Trigger submodule update in ${{ matrix.repo }}
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.SUBMODULE_UPDATE_PAT }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/4EVR0/${{ matrix.repo }}/dispatches \
-d "{\"event_type\":\"submodule-update\",\"client_payload\":{\"sha\":\"${{ github.sha }}\",\"ref\":\"${{ github.ref_name }}\"}}"