mirror of
https://github.com/mustbeperfect/definitive-opensource.git
synced 2026-04-17 23:53:26 +02:00
Migrated GitHub actions to UV
This commit is contained in:
20
.github/workflows/generate-readme.yml
vendored
20
.github/workflows/generate-readme.yml
vendored
@@ -19,20 +19,24 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
persist-credentials: true
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pip install -r requirements.txt || true
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version-file: 'pyproject.toml'
|
||||
|
||||
- name: Install UV
|
||||
uses: astral-sh/setup-uv@v7
|
||||
|
||||
- name: Install project
|
||||
run: uv sync --no-dev
|
||||
|
||||
- name: Run script to generate README
|
||||
run: python ./core/source/generation/readme_generator.py
|
||||
run: uv run ./core/source/generation/readme_generator.py
|
||||
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user