Skip to content

Commit 5d59528

Browse files
author
Darius Neațu
committed
Add workflow_dispatch and repository_dispatch triggers for manual testing
1 parent 7adddaa commit 5d59528

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/sync-docs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
# When it runs:
1212
# - Weekly on Mondays at 6:00 AM UTC (08:00–09:00 Romania time, depending on DST)
1313
# - Runs automatically via GitHub Actions schedule (cron)
14+
# - Can be triggered manually via workflow_dispatch (Actions tab → Run workflow)
15+
# - Can be triggered via API using repository_dispatch with type "sync-docs"
1416
#
1517
# What it does:
1618
# 1. Clones both the website and beman repositories
@@ -35,6 +37,10 @@ name: Auto-sync Beman Docs
3537
on:
3638
schedule:
3739
- cron: '0 6 * * MON' # 08:00–09:00 Romania time (depending on DST)
40+
workflow_dispatch: # Manual trigger for testing
41+
repository_dispatch: # API trigger for on-demand runs
42+
types:
43+
- sync-docs
3844

3945
permissions:
4046
contents: write

0 commit comments

Comments
 (0)