Use managed GitHub token for draft dispatch and bundle preview #131
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dispatch Antora Build and Deploy | |
on: | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
dispatch-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Dispatch Antora Build and Deploy | |
uses: convictional/[email protected] | |
with: | |
owner: riptano | |
repo: datastax-docs-site | |
github_token: ${{ secrets.DOCS_GITHUB_PAT }} | |
workflow_file_name: deploy-draft.yml | |
client_payload: '{ "build_repository": "${{ github.event.repository.full_name }}", "build_branch": "main", "draft_branch": "${{ github.event.pull_request.head.ref }}", "pull_request_number": "${{ github.event.pull_request.number }}", "ui_bundle_repository": "${{ github.event.repository.full_name }}", "ui_bundle_branch": "${{ github.event.pull_request.head.ref }}" }' |