Skip to content

Commit 1939f46

Browse files
ref
1 parent 285992d commit 1939f46

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

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

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,12 @@ 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-
2613
- name: Deploy Draft
2714
uses: convictional/[email protected]
2815
with:
2916
owner: riptano
3017
repo: datastax-docs-site
3118
github_token: ${{ secrets.DOC_GITHUB_PAT_CROSS_ORG }}
19+
ref: main
3220
workflow_file_name: deploy-draft.yml
3321
client_payload: '{ "build_repository": "${{ github.event.repository.full_name }}", "build_branch": "${{ github.base_ref }}", "draft_branch": "${{ github.event.pull_request.head.ref }}", "pull_request_number": "${{ github.event.pull_request.number }}" }'

0 commit comments

Comments
 (0)