forked from pyccel/pyccel
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 876 Bytes
/
comment_bot.yml
File metadata and controls
34 lines (32 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Bot comment handler
on:
issue_comment:
types: [ created ]
jobs:
Bot:
if: ${{ startsWith( github.event.comment.body, '/bot ' ) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/add_remote
with:
pr_id: ${{ github.event.issue.number }}
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Python dependencies
run: |
python -m pip install requests
- name: "Generate token"
id: token
uses: ./.github/actions/generate_bot_token
with:
bot_pem: "${{ secrets.BOT_PEM }}"
- id: run_bot
run: |
python ci_tools/bot_comment_react.py
env:
GH_TOKEN: ${{ github.token }}