-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
30 lines (26 loc) · 824 Bytes
/
database_auto_updater.yml
File metadata and controls
30 lines (26 loc) · 824 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
27
28
29
30
name: DataBase Updater
on:
pull_request:
# Will trigger on closed PRs
types: [closed]
jobs:
extract_and_update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.6
# Checks if PR is merged (subflag)
if: ${{ github.event.pull_request.merged == true }}
uses: actions/setup-python@v2
with:
python-version: '3.6'
- name: Run script
# Checks if PR is merged (subflag)
if: ${{ github.event.pull_request.merged == true }}
run: |
python -m pip install --upgrade pip
pip install PyGithub
python ./.github/scripts/Update_Database.py "$body" "$token"
env:
body: ${{ github.event.pull_request.body }}
token: ${{ secrets.DB_TOKEN }}