Skip to content

Commit cf3d9bf

Browse files
authored
Docs (#4)
* Update trigger-site-build.yml * Trigger site build only after successful validation * Optimize validation triggers: run only on docs and apps paths * Update trigger paths: remove .apps, keep docs only
1 parent 6b6d72f commit cf3d9bf

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/trigger-site-build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
name: Trigger Site Build
22
on:
3-
push:
3+
workflow_run:
4+
workflows: ["Validate"]
5+
types:
6+
- completed
47
branches:
58
- main
6-
paths:
7-
- 'docs/**'
89

910
jobs:
1011
trigger:
1112
runs-on: ubuntu-latest
1213
steps:
1314
- name: Trigger build in main repo
15+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1416
uses: peter-evans/repository-dispatch@v3
1517
with:
1618
token: ${{ secrets.GH_PAT_TRIGGER_BUILD }}

.github/workflows/validate.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ name: Validate
22

33
on:
44
push:
5+
paths:
6+
- 'docs/**'
7+
- '.github/workflows/validate.yml'
58
pull_request:
9+
paths:
10+
- 'docs/**'
11+
- '.github/workflows/validate.yml'
612

713
jobs:
814
validate-docs:

0 commit comments

Comments
 (0)