Skip to content

Commit cb90bf6

Browse files
authored
Add workflow for pull request draft builds (#174)
1 parent faf6152 commit cb90bf6

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
name: Dispatch Deploy Draft
1+
name: Deploy Draft
22

33
on:
4-
push:
5-
branches:
6-
- 'main'
7-
- 'stage'
8-
# Add additional content source branches here
94
pull_request:
105
branches:
116
- '*'
@@ -20,7 +15,7 @@ jobs:
2015
run: |
2116
if [ "${{ github.event_name }}" == "pull_request" ]; then
2217
# If this workflow is kicked off by a pull request, build
23-
# a draft using the pull resource base branch and PR branch.
18+
# a draft using the pull request base branch and PR branch.
2419
build_branch="${{ github.base_ref }}"
2520
draft_branch="${{ github.event.pull_request.head.ref }}"
2621
else
@@ -39,12 +34,12 @@ jobs:
3934
echo "draft_branch=$draft_branch" >> $GITHUB_OUTPUT
4035
id: branches
4136

42-
- name: Dispatch Deploy Draft
37+
- name: Deploy Draft
4338
uses: convictional/[email protected]
4439
with:
4540
owner: riptano
4641
repo: datastax-docs-site
4742
github_token: ${{ secrets.DISPATCH_GITHUB_TOKEN }}
48-
github_user: mlr
43+
github_user: ${{ secrets.DISPATCH_GITHUB_USER }}
4944
workflow_file_name: deploy-draft.yml
5045
client_payload: '{ "build_repository": "${{ github.event.repository.full_name }}", "build_branch": "${{ steps.branches.outputs.build_branch }}", "draft_branch": "${{ steps.branches.outputs.draft_branch }}", "pull_request_number": "${{ github.event.pull_request.number }}" }'

0 commit comments

Comments
 (0)