2022-04-25 13:21:34 +03:00
|
|
|
name: Bot
|
2022-02-14 13:49:21 +03:00
|
|
|
|
2023-11-20 20:57:16 +03:00
|
|
|
env:
|
|
|
|
# https://github.com/actions/setup-node/issues/899#issuecomment-1819151595
|
|
|
|
SKIP_YARN_COREPACK_CHECK: 1
|
|
|
|
|
2022-02-14 13:49:21 +03:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2022-10-06 06:44:58 +03:00
|
|
|
- bot
|
2022-05-08 11:55:51 +03:00
|
|
|
workflow_dispatch:
|
2022-02-15 13:35:59 +03:00
|
|
|
|
2022-02-14 13:49:21 +03:00
|
|
|
jobs:
|
2022-10-06 06:44:58 +03:00
|
|
|
invoke:
|
|
|
|
# Due to caching issue, actually logic lives at
|
|
|
|
# https://github.com/swc-project/bot
|
|
|
|
name: Start
|
2022-02-14 13:49:21 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-10-06 06:44:58 +03:00
|
|
|
# https://github.com/orgs/community/discussions/26323
|
|
|
|
- name: "Invoke bot on swc-project/bot"
|
2022-02-15 13:35:59 +03:00
|
|
|
run: |
|
2022-10-06 06:44:58 +03:00
|
|
|
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"}'
|