forked from lancelote/test_auto_comment
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (21 loc) · 906 Bytes
/
notify-doc.yml
File metadata and controls
26 lines (21 loc) · 906 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
name: notifier for docteam
on:
pull_request_target:
types: [ labeled, closed ]
jobs:
build:
if: |
github.event.action == 'closed' && contains(github.event.pull_request.labels.*.name, 'to be documented') ||
github.event.label.name == 'to be documented' && github.event.pull_request.merged
runs-on: ubuntu-latest
steps:
- name: Checkout repo content
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install python packages
run: pip install PyGithub
- name: Analyze the event and (if needed) write a comment
run: python scripts/notify_docteam.py --token ${{ secrets.WORKFLOW_GITHUB_TOKEN }} --pull_request ${{ github.event.pull_request.number }}