File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 branches :
66 - web
77 workflow_dispatch :
8- schedule :
9- # Run once a day at 03:00 UTC to refresh GitHub data and redeploy
10- - cron : ' 0 3 * * *'
118
129permissions :
1310 contents : read
Original file line number Diff line number Diff line change 1+ name : Scheduled deploy
2+
3+ on :
4+ schedule :
5+ # Run once a day at 03:00 UTC to refresh GitHub data and redeploy
6+ - cron : ' 0 3 * * *'
7+
8+ permissions :
9+ actions : write
10+
11+ jobs :
12+ trigger :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Dispatch deploy on web branch
16+ uses : actions/github-script@v7
17+ with :
18+ script : |
19+ await github.rest.actions.createWorkflowDispatch({
20+ owner: context.repo.owner,
21+ repo: context.repo.repo,
22+ workflow_id: 'deploy.yml',
23+ ref: 'web'
24+ })
Original file line number Diff line number Diff line change 88
99permissions :
1010 contents : write
11+ actions : write
1112
1213jobs :
1314 sync :
You can’t perform that action at this time.
0 commit comments