Update Versions #322
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 Versions | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' # Runs at 00:00 UTC every day. | |
release: | |
types: [created] | |
jobs: | |
update-versions: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
pip install poetry | |
poetry install | |
- name: Run extract_releases script | |
run: poetry run python scripts/extract_releases.py | |
- name: Commit and Push changes | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Niclas Haderer" | |
git add versions/* | |
git commit -m "Updated version" -a || echo "No changes to commit" | |
git push |