diff --git a/.github/workflows/dispatch-deploy-draft.yml b/.github/workflows/dispatch-deploy-draft.yml index 5a134ea9..5bdada0b 100644 --- a/.github/workflows/dispatch-deploy-draft.yml +++ b/.github/workflows/dispatch-deploy-draft.yml @@ -10,6 +10,19 @@ jobs: runs-on: ubuntu-latest steps: + - name: Test + uses: actions/github-script@v6 + with: + github-token: ${{ secrets.DOC_GITHUB_PAT_CROSS_ORG }} + script: | + const result = await github.rest.actions.createWorkflowDispatch({ + owner: 'riptano', + repo: 'datastax-docs-site', + workflow_id: 'deploy-draft.yml', + ref: 'main' + }) + console.log(result) + - name: Deploy Draft uses: convictional/trigger-workflow-and-wait@v1.6.5 with: