mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 23:27:56 +03:00
21 lines
613 B
YAML
21 lines
613 B
YAML
name: Bot
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- bot
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
invoke:
|
|
# Due to caching issue, actually logic lives at
|
|
# https://github.com/swc-project/bot
|
|
name: Start
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# https://github.com/orgs/community/discussions/26323
|
|
- name: "Invoke bot on swc-project/bot"
|
|
run: |
|
|
curl -XPOST -u "swc-bot:${{secrets.BOT_GH_TOKEN}}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/swc-project/bot/dispatches --data '{"event_type": "run_bot"}'
|