Skip to content

Commit 398cbe7

Browse files
committed
trigger modules regenerations after standalone generator has been deployed
1 parent a7ec347 commit 398cbe7

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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

.github/workflows/build-component.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,7 @@ jobs:
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 }}

0 commit comments

Comments
 (0)