Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit 207f0ce

Browse files
committed
[action]: testing dispatch to trigger build from app builder;
1 parent 8c642e2 commit 207f0ce

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/pipeline.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Build and Publish to GH Pages
33
on:
44
push:
55
branches: [ main ]
6+
repository_dispatch:
7+
types: [ app_generator_completed ]
68

79
jobs:
810
build:

.github/workflows/project-generator.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,13 @@ jobs:
3636
git config user.email "github-actions[bot]@users.noreply.github.com"
3737
git add .
3838
git commit -m "[bot,builder]: ran builder;" || echo "No changes to commit"
39-
git push "https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git" HEAD:main
39+
git push "https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git" HEAD:main
40+
- name: Trigger Build & Deploy workflow
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
run: |
44+
curl -X POST \
45+
-H "Accept: application/vnd.github+json" \
46+
-H "Authorization: Bearer $GITHUB_TOKEN" \
47+
https://api.github.com/repos/${{ github.repository }}/dispatches \
48+
-d '{"event_type":"app_generator_completed"}'

0 commit comments

Comments
 (0)