Skip to content

Commit 1ca21b3

Browse files
CLI
1 parent 1939f46 commit 1ca21b3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111

1212
steps:
1313
- name: Deploy Draft
14-
uses: convictional/[email protected]
15-
with:
16-
owner: riptano
17-
repo: datastax-docs-site
18-
github_token: ${{ secrets.DOC_GITHUB_PAT_CROSS_ORG }}
19-
ref: main
20-
workflow_file_name: deploy-draft.yml
21-
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 }}" }'
14+
- run: |
15+
echo "${{ env.WORKFLOW_INPUT }}"
16+
| gh workflow run -R riptano/datastax-docs-site deploy-draft.yml --json
17+
sleep 5
18+
gh run watch -R riptano/datastax-docs-site $(gh run list -R riptano/datastax-docs-site -L1 --json databaseId --jq '.[0].databaseId')
19+
env:
20+
WORKFLOW_INPUT: '{ "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 }}" }'
21+
GH_TOKEN: ${{ secrets.DOC_GITHUB_PAT_CROSS_ORG }}

0 commit comments

Comments
 (0)