Skip to content

update-readme

update-readme #192

Workflow file for this run

name: update-readme
on:
schedule:
- cron: '0 0 */1 * *'
workflow_dispatch:
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- run: pip install -r ./.scripts/requirements.txt
- run: python .scripts/update.py
- name: Commit changes (mit Abbruch bei "nothing to commit")
run: |
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git add ./profile/README.md
if ! git commit -m "Update Article List on $(date +%Y-%m-%d)"; then
echo "Keine Änderungen gefunden. Abbruch!"
exit 0
fi
git push