-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 983 Bytes
/
scrapping.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
40
41
42
43
name: Update NOLPL database
on:
schedule:
- cron: 0 0 * * 3
workflow_dispatch:
jobs:
scrappping:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
actions: read
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install poetry
run: |
curl -sSL https://install.python-poetry.org | python
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
poetry install
- name: Launch scrapping
run: |
poetry run python noplp/create_database.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5.0.2
with:
base: main
commit-message: "chore(database): update database"
title: Perform scrapping to get last database version
branch: update-noplp-database