File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # list projects
4+ PROJECTS=(
5+ " Guite/test-actions"
6+ " Guite/Awards"
7+ " zikula-modules/Content"
8+ " zikula-modules/MultiHook"
9+ " zikula-modules/Multisites"
10+ " zikula-modules/News"
11+ )
12+
13+ # loop through projects
14+ for PROJECT in " ${PROJECTS[@]} "
15+ do
16+ echo " Trigger ${PROJECT} "
17+ curl POST -H " Authorization: token ${DISPATCH_TOKEN} " \
18+ -H " Accept: application/vnd.github.everest-preview+json" \
19+ -H " Content-Type: application/json" \
20+ " https://api.github.com/repos/${PROJECT} /dispatches" \
21+ --data ' {"event_type": "generator-updated"}' \
22+ --silent
23+ done
Original file line number Diff line number Diff line change 6969 token : ${{ secrets.DISPATCH_TOKEN }}
7070 repository : Guite/MostProduct
7171 event-type : upstream-build
72+ - name : Regenerate modules
73+ run : ./.github/scripts/regenerateModules.sh
74+ env :
75+ DISPATCH_TOKEN : ${{ secrets.DISPATCH_TOKEN }}
You can’t perform that action at this time.
0 commit comments