mirror of
https://github.com/vane/ceidg
synced 2024-11-12 06:25:51 +01:00
36 lines
861 B
YAML
36 lines
861 B
YAML
name: Get ceidg data
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "35 4 * * *"
|
|
|
|
jobs:
|
|
stale:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Set up Python 3.11
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.11
|
|
- 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: |
|
|
git config --local user.email "github.action@vane.pl"
|
|
git config --local user.name "GitHub Action"
|
|
git add data
|
|
git commit -m "Update data" -a
|
|
- name: Push changes
|
|
uses: ad-m/github-push-action@master
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|