Skip to content

Bump stefanzweifel/git-auto-commit-action from 4 to 5 #415

Bump stefanzweifel/git-auto-commit-action from 4 to 5

Bump stefanzweifel/git-auto-commit-action from 4 to 5 #415

Workflow file for this run

# This workflows starts scraping Routescanner and MSC each day at 06:00 UTC,
# using the v1 scrapers, and opens a PR to merge the gathered data.
name: Scrape Maersk daily
on:
# Disabled because Routescanner v1 is broken, and MSC v1 is redundant (replaced by v2)
schedule:
- cron: '0 6 * * *'
push:
paths:
- ".github/workflows/daily_run.yml"
#- "webscrapers/routescanner_automated.py"
#- "webscrapers/msc_automated.py"
- "webscrapers/maersk.py"
workflow_dispatch:
jobs:
maersk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- run: pip install -U pip wheel setuptools
- run: pip install -U selenium beautifulsoup4 pandas numpy packaging webdriver-manager
- run: python maersk.py
working-directory: ./webscrapers
- uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: "data_staging"
commit_options: '--signoff'
commit_message: "Add Maersk data"