mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-22 22:20:02 +00:00
* ci: replace pull-request actions with cyborg Signed-off-by: tison <wander4096@gmail.com> * skip cron maintenance in forks Signed-off-by: tison <wander4096@gmail.com> --------- Signed-off-by: tison <wander4096@gmail.com>
34 lines
825 B
YAML
34 lines
825 B
YAML
name: Schedule Management
|
|
on:
|
|
schedule:
|
|
- cron: '4 2 * * *'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
issues: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
maintenance:
|
|
name: Periodic Maintenance
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.repository == 'GreptimeTeam/greptimedb' }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
- uses: pnpm/action-setup@v3
|
|
with:
|
|
package_json_file: 'cyborg/package.json'
|
|
run_install: true
|
|
- name: Describe the Environment
|
|
working-directory: cyborg
|
|
run: pnpm tsx -v
|
|
- name: Do Maintenance
|
|
working-directory: cyborg
|
|
run: pnpm tsx bin/schedule.ts
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
|