Merge pull request #15 from datasets/refactored-to-python #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: List of the world's major cities pipeline | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: "0 0 1 1 *" | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@master | |
- name: Build the data and create local changes | |
uses: actions/setup-python@v1 | |
with: | |
python-version: '3.11.2' | |
architecture: x64 | |
- run: | | |
pip install -r requirements.txt | |
python scripts/process.py | |
- name: Commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git commit --allow-empty -m "Auto-update of the data package" -a | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.gh }} |