-
-
Notifications
You must be signed in to change notification settings - Fork 631
34 lines (30 loc) · 748 Bytes
/
docs.yml
File metadata and controls
34 lines (30 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Documentation
permissions:
contents: read
actions: write
on:
push:
branches:
- main
paths:
- 'archive/**'
- 'test/**'
- '.glotter.yml'
- '.github/workflows/docs.yml'
jobs:
trigger_workflow:
name: Docs Generation & Deployment
runs-on: ubuntu-latest
steps:
- name: Workflow Trigger
uses: actions/github-script@v6
with:
github-token: ${{ secrets.PAT }}
script: |
const result = await github.rest.actions.createWorkflowDispatch({
owner: 'TheRenegadeCoder',
repo: 'sample-programs-website',
workflow_id: 'main.yml',
ref: 'main'
})
console.log(result)