summaryrefslogtreecommitdiff
path: root/.github/workflows/issues.yml
blob: fa739eab1734c6377665630410d0d35baa496fbb (plain)
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
# Fired by Github Actions every time an issue, PR or comment is created.
name: issues
on:
  issues:
    types: [opened]
  pull_request:
    typed: [opened]
  issue_comment:
    types: [created]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    # install python
    - uses: actions/checkout@v2
    - name: Install Python
      uses: actions/setup-python@v2
      with:
        python-version: 3.8
    # install deps
    - name: Install deps
      run: python -m pip install --upgrade pip PyGithub
    # run
    - name: Run
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      run: |
        PYTHONUNBUFFERED=1 python .github/workflows/issues.py