-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (37 loc) · 1.25 KB
/
import.yaml
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
39
name: Porty
on:
issues:
types:
- opened
issue_comment:
types:
- created
jobs:
create_pull_request:
if: ${{ (contains(github.event.issue.body, '#import') && !github.event.comment) || contains(github.event.comment.body, '#import') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- run: python -m pip install -r scripts/metadata/requirements.txt
- run: python -m pip install -r scripts/import/requirements.txt
- name: Run porty script
run: scripts/import/porty.py import
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
update_pull_request:
if: ${{ github.event.comment && github.event.issue.pull_request && contains(github.event.comment.body, '#update') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- run: python -m pip install -r scripts/metadata/requirements.txt
- run: python -m pip install -r scripts/import/requirements.txt
- name: Run porty script
run: scripts/import/porty.py update
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}