1
0
mirror of https://github.com/vane/ceidg synced 2024-11-10 06:06:10 +01:00
ceidg/.github/workflows/datapull.yml

36 lines
861 B
YAML
Raw Normal View History

2021-01-13 10:24:08 +01:00
name: Get ceidg data
on:
2021-01-13 10:26:38 +01:00
workflow_dispatch:
2021-01-13 10:24:08 +01:00
schedule:
2021-01-13 10:33:44 +01:00
- cron: "35 4 * * *"
2021-01-13 10:24:08 +01:00
jobs:
stale:
runs-on: ubuntu-22.04
2021-01-13 10:24:08 +01:00
steps:
- uses: actions/checkout@master
2024-01-15 11:40:38 +01:00
- name: Set up Python 3.11
2021-01-13 10:24:08 +01:00
uses: actions/setup-python@v2
with:
2024-01-15 11:40:38 +01:00
python-version: 3.11
2021-01-13 10:24:08 +01:00
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Create local changes
run: |
python ceidg.py
- name: Commit files
run: |
2023-03-09 00:56:47 +01:00
git config --local user.email "github.action@vane.pl"
2021-01-13 10:24:08 +01:00
git config --local user.name "GitHub Action"
2021-01-13 10:28:34 +01:00
git add data
2021-01-13 10:24:08 +01:00
git commit -m "Update data" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}