swc/.github/workflows/bot.yml
2022-02-15 02:13:15 +09:00

36 lines
694 B
YAML

name: SWC Bot
on:
push:
branches:
- main
schedule:
- cron: "0,30 * * * *"
jobs:
auto-rebase:
name: Auto rebase
runs-on: ubuntu-latest
concurrency: swc-bot-auto-rebase
steps:
- uses: actions/checkout@v2
with:
repository: "swc-project/swc"
ref: "main"
- uses: actions/setup-node@v2
with:
node-version: "16"
- name: Install dependencies
working-directory: scripts/bot
run: |
yarn
- name: Rebase a PR
working-directory: scripts/bot
run: |
npx ts-node src/auto-rebase.ts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}