Skip to content

feat: Add Artistic Style, CRY, Millepede II, RAVE, ThePEG, VecCore, VecGeom #2416

feat: Add Artistic Style, CRY, Millepede II, RAVE, ThePEG, VecCore, VecGeom

feat: Add Artistic Style, CRY, Millepede II, RAVE, ThePEG, VecCore, VecGeom #2416

Workflow file for this run

name: Update profile/README.md
on:
# Run every 6 hours
schedule:
- cron: "0 */6 * * *"
pull_request:
# Also allow manual triggering
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
enable-cache: auto
cache-dependency-glob: "**/uv.lock"
prune-cache: true
- name: Install Python dependencies
run: |
uv pip install --system --upgrade requests pytest responses jsonschema
- name: Run Python tests
run: pytest tests/ -v
- name: Run update script
env:
# Pass the GitHub token so the API requests can be authenticated.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python update_readme.py
(uvx pre-commit run --all-files || true)
- uses: actions/upload-artifact@v4
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
with:
name: updated-readme
path: |
profile/README.md
site/src/data/tools.json
- name: Commit and push changes
# The GITHUB_TOKEN commit will NOT re-trigger deploy.yml (GitHub's
# loop-prevention). The deploy workflow chains via workflow_run instead.
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' && github.repository == 'hep-packaging-coordination/.github'
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
if [ -n "$(git status --porcelain)" ]; then
git add profile/README.md site/src/data/tools.json
git commit -m "Update README via CI"
git push
else
echo "No changes to commit."
fi