Update NVIDIA driver versions #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update NVIDIA driver versions | |
| on: | |
| # NVIDIA Unix driver releases are infrequent so a weekly check is plenty. | |
| schedule: | |
| - cron: "0 14 * * 1" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| refresh: | |
| name: Open PR if NVIDIA versions changed | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 | |
| with: | |
| egress-policy: audit | |
| - name: checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4 | |
| - name: scrape upstream and rewrite config.yaml | |
| run: python3 ./hack/build/refresh-nvidia-versions.py | |
| - name: generate cultivator token | |
| uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1 | |
| id: generate-token | |
| with: | |
| app-id: "${{ secrets.EDERA_CULTIVATION_APP_ID }}" | |
| private-key: "${{ secrets.EDERA_CULTIVATION_APP_PRIVATE_KEY }}" | |
| # Uses the GitHub API path under the hood so commits are auto-signed | |
| # with the web-flow key (the repo enforces "Verified signatures", which | |
| # blocks plain `git push` from GITHUB_TOKEN). The action is idempotent: | |
| # repeated runs on the same branch update the existing PR. | |
| - name: open PR if config.yaml changed | |
| uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1 | |
| with: | |
| token: ${{ steps.generate-token.outputs.token }} | |
| sign-commits: true | |
| branch: auto/refresh-nvidia | |
| base: main | |
| add-paths: config.yaml | |
| commit-message: "chore: bump NVIDIA driver versions from upstream" | |
| title: "chore: bump NVIDIA driver versions" | |
| body: | | |
| Automated refresh from https://www.nvidia.com/en-us/drivers/unix/. | |
| Review the diff in `config.yaml` and confirm the bumped image tags | |
| build cleanly before merging. | |
| delete-branch: true |