-
Notifications
You must be signed in to change notification settings - Fork 4
30 lines (29 loc) · 1.02 KB
/
issue-trigger.yaml
File metadata and controls
30 lines (29 loc) · 1.02 KB
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
name: issue comment
on:
issue_comment:
types: [created, edited]
jobs:
issue_commented:
name: Issue comment
if: ${{ !github.event.issue.pull_request && github.event.action != 'deleted' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run script
run: python src/automations/main.py
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_USERS_MAP: ${{ env.TELEGRAM_USERS_MAP }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_URL: ${{ github.event.issue.html_url }}
COMMENT_USER: ${{ github.event.comment.user.login }}
COMMENT_BODY: ${{ github.event.comment.body }}
COMMENT_URL: ${{ github.event.comment.html_url }}