AUTO: Sync ScalarDB includes to docs site repo #1
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
# This workflow auto-creates PRs for ScalarDB includes that come from the centralized private docs repository where we update our docs. | |
name: ✨ Auto-create pull request - ScalarDB includes | |
on: | |
push: | |
branches: | |
- sync-scalardb-includes | |
jobs: | |
create-pull-request: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Create pull request | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
const { repo, owner } = context.repo; | |
const result = await github.rest.pulls.create({ | |
title: 'AUTO: Docs repo sync - ScalarDB includes', | |
owner, | |
repo, | |
head: '${{ github.ref_name }}', | |
base: 'main', | |
body: [ | |
'This is an automated pull request (PR) to sync changes to ScalarDB includes in the centralized private docs repo to this public docs site repo.', | |
'', | |
'Before merging this PR, confirm the following:', | |
'', | |
'- [ ] I have confirmed that this PR can be merged without waiting (if necessary).', | |
' - An example of when a PR must wait to be merged is when the docs are part of a pending release of a new product version.' | |
].join('\n') | |
}); | |
github.rest.issues.addLabels({ | |
owner, | |
repo, | |
issue_number: result.data.number, | |
labels: ['documentation', 'scalardb', 'triage'] | |
}); |