Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates for unified build #174

Merged
merged 1 commit into from
May 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions .github/workflows/dispatch-deploy-draft.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: Dispatch Deploy Draft
name: Deploy Draft

on:
push:
branches:
- 'main'
- 'stage'
# Add additional content source branches here
pull_request:
branches:
- '*'
Expand All @@ -20,7 +15,7 @@ jobs:
run: |
if [ "${{ github.event_name }}" == "pull_request" ]; then
# If this workflow is kicked off by a pull request, build
# a draft using the pull resource base branch and PR branch.
# a draft using the pull request base branch and PR branch.
build_branch="${{ github.base_ref }}"
draft_branch="${{ github.event.pull_request.head.ref }}"
else
Expand All @@ -39,12 +34,12 @@ jobs:
echo "draft_branch=$draft_branch" >> $GITHUB_OUTPUT
id: branches

- name: Dispatch Deploy Draft
- name: Deploy Draft
uses: convictional/[email protected]
with:
owner: riptano
repo: datastax-docs-site
github_token: ${{ secrets.DISPATCH_GITHUB_TOKEN }}
github_user: mlr
github_user: ${{ secrets.DISPATCH_GITHUB_USER }}
workflow_file_name: deploy-draft.yml
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 }}" }'
Loading