Skip to content

Commit

Permalink
Move extracting to new workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jbruechert committed Mar 29, 2021
1 parent 6c8aec1 commit 3372da0
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 23 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/crawl.yml
@@ -0,0 +1,32 @@
name: Crawl law changes

on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"

jobs:
update_lawsgit:
name: Update gesetze.git
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install system dependencies
run: sudo apt-get install libxml2-utils libxml2-dev libxslt1-dev -y
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: run scrapers
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
./updatelawsgit.py
git add data
git commit -m "Update data"
git push
23 changes: 0 additions & 23 deletions .github/workflows/test.yml
Expand Up @@ -50,26 +50,3 @@ jobs:
#- name: Test with pytest
# run: |
# pytest
update_lawsgit:
name: Update gesetze.git
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install system dependencies
run: sudo apt-get install libxml2-utils libxml2-dev libxslt1-dev -y
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: run scrapers
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
./updatelawsgit.py
git add data
git commit -m "Update data"
git push

0 comments on commit 3372da0

Please sign in to comment.