* Update and pin GitHub Actions * Pin pre-commit hooks too * adjustments (don't pin official actions)
69 lines
2.4 KiB
YAML
69 lines
2.4 KiB
YAML
name: Update dependencies
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/update-dependencies.yml'
|
|
- 'bin/update_pythons.py'
|
|
- 'bin/update_docker.py'
|
|
- 'bin/update_virtualenv.py'
|
|
- 'bin/projects.py'
|
|
- 'docs/data/projects.yml'
|
|
- 'noxfile.py'
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 6 * * 1' # "At 06:00 on Monday."
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
update-dependencies:
|
|
name: Update dependencies
|
|
if: github.repository_owner == 'pypa' || github.event_name != 'schedule'
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
environment: ${{ github.ref == 'refs/heads/main' && github.repository == 'pypa/cibuildwheel' && 'update-dependencies-workflow' || '' }}
|
|
steps:
|
|
|
|
# we use this step to grab a Github App auth token, so that PRs generated by this workflow
|
|
# run the GHA tests.
|
|
- uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
|
|
id: generate-token
|
|
if: github.ref == 'refs/heads/main' && github.repository == 'pypa/cibuildwheel'
|
|
with:
|
|
app-id: ${{ secrets.CIBUILDWHEEL_BOT_APP_ID }}
|
|
private-key: ${{ secrets.CIBUILDWHEEL_BOT_APP_PRIVATE_KEY }}
|
|
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- uses: wntrblm/nox@5a277b752f6094150e25237d47c34168e2b7526e # 2026.02.09
|
|
|
|
- name: "Run update: dependencies"
|
|
run: nox --force-color -s update_constraints
|
|
- name: "Run update: python configs"
|
|
run: nox --force-color -s update_pins
|
|
- name: "Run update: docs user projects"
|
|
run: nox --force-color -s update_proj -- --auth=${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Create Pull Request
|
|
if: github.ref == 'refs/heads/main' && github.repository == 'pypa/cibuildwheel'
|
|
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
|
|
with:
|
|
commit-message: Update dependencies
|
|
title: '[Bot] Update dependencies'
|
|
body: |
|
|
Update the versions of our dependencies.
|
|
|
|
PR generated by "Update dependencies" [workflow](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}).
|
|
branch: update-dependencies-pr
|
|
sign-commits: true
|
|
token: ${{ steps.generate-token.outputs.token }}
|
|
delete-branch: true
|
|
labels: |
|
|
CI: GraalPy
|
|
CI: PyPy
|
|
dependencies
|