ワークフローの拡張子を短縮 #1
This file contains 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: Call dispatcher | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- templates/** | |
- src/** | |
- .github/workflows/** | |
jobs: | |
call: | |
name: Call dispatchers | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
target-repository: ${{ fromJSON(vars.TARGET_REPOSITORIES) }} | |
steps: | |
- name: Call dispatcher | |
run: | | |
curl https://api.github.com/repos/Gakuto1112/${{ matrix.target-repository }}/dispatches \ | |
-X POST \ | |
-H 'Accept: application/vnd.github+json' \ | |
-H 'Authorization: Bearer ${{ secrets.DISPATCH_TOKEN }}' \ | |
-d '{"event_type": "dispatch_readme"}' |