update-readme #195
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: 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 |