Skip to content

Acompanhamento parceria FIAP #378

Acompanhamento parceria FIAP

Acompanhamento parceria FIAP #378

name: New Issue Integration
on:
issue_comment:
issues:
types: [opened]
jobs:
issue_created:
name: New issue
if: ${{ github.event.action == 'opened' }}
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/new-issue.py
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_URL: ${{ github.event.issue.html_url }}
ISSUE_AUTHOR: ${{ github.event.issue.user.login }}
ISSUE_BODY: ${{ github.event.issue.body }}