feat: add repository dispatch to trigger watchbeats sync #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Dispatch Update to Watchbeats | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| jobs: | |
| dispatch: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Dispatch update event | |
| uses: peter-evans/repository-dispatch@v4 | |
| with: | |
| token: ${{ secrets.WATCHBEATS_DISPATCH_TOKEN }} | |
| repository: xinnjie/watchbeats | |
| event-type: submodule_update |