Skip to content

Commit 285992d

Browse files
GH Script
1 parent d40f870 commit 285992d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/dispatch-deploy-draft.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13+
- name: Test
14+
uses: actions/github-script@v6
15+
with:
16+
github-token: ${{ secrets.DOC_GITHUB_PAT_CROSS_ORG }}
17+
script: |
18+
const result = await github.rest.actions.createWorkflowDispatch({
19+
owner: 'riptano',
20+
repo: 'datastax-docs-site',
21+
workflow_id: 'deploy-draft.yml',
22+
ref: 'main'
23+
})
24+
console.log(result)
25+
1326
- name: Deploy Draft
1427
uses: convictional/[email protected]
1528
with:

0 commit comments

Comments
 (0)