mirror of
https://github.com/mustbeperfect/definitive-opensource.git
synced 2026-04-17 21:54:05 +02:00
Updated directory for python version in action
This commit is contained in:
47
.github/workflows/update-stats.yml
vendored
47
.github/workflows/update-stats.yml
vendored
@@ -1,10 +1,9 @@
|
||||
|
||||
name: Update Applications Metadata
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 0 * * *' # Every day at midnight UTC
|
||||
- cron: "0 0 * * *" # Every day at midnight UTC
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
@@ -14,30 +13,30 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
persist-credentials: true
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
persist-credentials: true
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version-file: 'pyproject.toml'
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version-file: "core/pyproject.toml"
|
||||
|
||||
- name: Install UV
|
||||
uses: astral-sh/setup-uv@v7
|
||||
- name: Install UV
|
||||
uses: astral-sh/setup-uv@v7
|
||||
|
||||
- name: Install project
|
||||
run: uv sync --no-dev
|
||||
- name: Install project
|
||||
run: uv sync --no-dev
|
||||
|
||||
- name: Run update script
|
||||
run: uv run core/source/maintenance/stats_updator.py
|
||||
- name: Run update script
|
||||
run: uv run core/source/maintenance/stats_updator.py
|
||||
|
||||
- name: Commit changes
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git add core/data/dynamic/applications.json
|
||||
git commit -m "Auto-update GitHub metadata" || echo "No changes to commit"
|
||||
git push
|
||||
- name: Commit changes
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git add core/data/dynamic/applications.json
|
||||
git commit -m "Auto-update GitHub metadata" || echo "No changes to commit"
|
||||
git push
|
||||
|
||||
Reference in New Issue
Block a user