Skip to content

Commit cdbb821

Browse files
ref
1 parent b270499 commit cdbb821

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@ jobs:
1212
steps:
1313
- name: Deploy Draft
1414
run: |
15-
gh auth login --with-token <<< $GH_TOKEN
16-
echo "${{ env.WORKFLOW_INPUT }}" \
17-
| gh workflow run -R riptano/datastax-docs-site deploy-draft.yml --ref $WORKFLOW_REF --json
15+
echo '{ "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 }}" }' \
16+
| gh workflow run -R riptano/datastax-docs-site deploy-draft.yml --ref "$WORKFLOW_REF" --json
1817
sleep 5
1918
gh run watch -R riptano/datastax-docs-site $(gh run list -R riptano/datastax-docs-site -L1 --json databaseId --jq '.[0].databaseId')
2019
env:
2120
WORKFLOW_REF: main
22-
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 }}" }'
2321
GH_TOKEN: ${{ secrets.DOC_GITHUB_PAT_CROSS_ORG }}

0 commit comments

Comments
 (0)