mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-26 20:54:08 +00:00
* ci: make nightly merge opt-out and simplify Docbot labels Signed-off-by: shuiyisong <xixing.sys@gmail.com> * ci: scope nightly label migration and sync to main Use the saved nightly preference only for PRs targeting main at both snapshot and apply time. Clean up docs-not-required across all bases. Restore the skip label when it is removed while the opt-out box is checked. Signed-off-by: shuiyisong <xixing.sys@gmail.com> * ci: honor cleared nightly opt-outs on retry Signed-off-by: shuiyisong <xixing.sys@gmail.com> --------- Signed-off-by: shuiyisong <xixing.sys@gmail.com>
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
name: Follow Up Docs
|
|
on:
|
|
pull_request_target:
|
|
types: [opened, edited, closed]
|
|
|
|
jobs:
|
|
docbot:
|
|
# An unrelated edit must not displace a pending docs checkbox change.
|
|
if: >-
|
|
github.event.action != 'edited' ||
|
|
(github.event.changes.body &&
|
|
contains(github.event.changes.body.from, '[x] This PR requires documentation updates.') !=
|
|
contains(github.event.pull_request.body, '[x] This PR requires documentation updates.'))
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}-${{ github.event.action == 'closed' && 'close' || 'labels' }}
|
|
cancel-in-progress: false
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
pull-requests: write
|
|
contents: read
|
|
actions: read
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
- uses: ./.github/actions/setup-cyborg
|
|
- name: Maybe Follow Up Docs Issue
|
|
working-directory: cyborg
|
|
run: pnpm tsx bin/follow-up-docs-issue.ts
|
|
env:
|
|
DOCS_REPO_TOKEN: ${{ secrets.DOCS_REPO_TOKEN }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|