-
Notifications
You must be signed in to change notification settings - Fork 427
38 lines (31 loc) · 1.08 KB
/
lecture_participation.yml
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
35
36
37
38
name: Lecture Participation Information
on:
issue_comment:
types: [created]
permissions:
issues: write
jobs:
track-participation:
if: >
github.event.issue.number == 2370 &&
github.event.comment.author_association != 'COLLABORATOR' &&
github.event.comment.author_association != 'OWNER' &&
github.event.comment.author_association != 'MEMBER'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/[email protected]
with:
python-version: '3.11.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f ./tools/requirements.txt ]; then pip install -r ./tools/requirements.txt; fi
- name: Update participation tracker
working-directory: tools
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO_FULLNAME: ${{ github.repository }}
TRACKER_ISSUE_NUMBER: ${{ github.event.issue.number }}
run: python track_participation.py --printMarkdown --publish