Skip to content

merge main

merge main #15

name: Generate requirements.txt for clever branches
on:
push:
branches:
- run-clever
- dev-clever
pull_request:
branches:
- run-clever
- dev-clever
jobs:
export-requirements:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12' # Choose your Python version
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Configure Poetry (no virtualenv)
run: poetry config virtualenvs.create false
- name: Install dependencies
run: poetry install
- name: Export requirements.txt
run: |
poetry export --without-hashes --format=requirements.txt > requirements.txt
- run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- run: git add requirements.txt
- run: git commit --m 'generate requirements.txt from poetry' || exit 0
- run: git push