|
| 1 | +name: "update-nvidia-device-plugin-version" |
| 2 | +on: |
| 3 | + workflow_dispatch: |
| 4 | + schedule: |
| 5 | + # every Monday at around 3 am pacific/10 am UTC |
| 6 | + - cron: "0 10 * * 1" |
| 7 | +env: |
| 8 | + GOPROXY: https://proxy.golang.org |
| 9 | + GO_VERSION: '1.21.3' |
| 10 | +permissions: |
| 11 | + contents: read |
| 12 | + |
| 13 | +jobs: |
| 14 | + bump-nvidia-device-plugin-version: |
| 15 | + runs-on: ubuntu-20.04 |
| 16 | + steps: |
| 17 | + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 |
| 18 | + - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe |
| 19 | + with: |
| 20 | + go-version: ${{env.GO_VERSION}} |
| 21 | + cache-dependency-path: ./go.sum |
| 22 | + - name: Bump nvidia-device-plugin version |
| 23 | + id: bumpNvidiaDevicePlugin |
| 24 | + run: | |
| 25 | + echo "OLD_VERSION=$(DEP=nvidia-device-plugin make get-dependency-version)" >> $GITHUB_OUTPUT |
| 26 | + make update-nvidia-device-plugin-version |
| 27 | + echo "NEW_VERSION=$(DEP=nvidia-device-plugin make get-dependency-version)" >> $GITHUB_OUTPUT |
| 28 | + # The following is to support multiline with GITHUB_OUTPUT, see https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings |
| 29 | + echo "changes<<EOF" >> $GITHUB_OUTPUT |
| 30 | + echo "$(git status --porcelain)" >> $GITHUB_OUTPUT |
| 31 | + echo "EOF" >> $GITHUB_OUTPUT |
| 32 | + - name: Create PR |
| 33 | + if: ${{ steps.bumpNvidiaDevicePlugin.outputs.changes != '' }} |
| 34 | + uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 |
| 35 | + with: |
| 36 | + token: ${{ secrets.MINIKUBE_BOT_PAT }} |
| 37 | + commit-message: 'Addon nvidia-device-plugin: Update nvidia/k8s-device-plugin image from ${{ steps.bumpNvidiaDevicePlugin.outputs.OLD_VERSION }} to ${{ steps.bumpNvidiaDevicePlugin.outputs.NEW_VERSION }}' |
| 38 | + committer: minikube-bot <minikube-bot@google.com> |
| 39 | + author: minikube-bot <minikube-bot@google.com> |
| 40 | + branch: auto_bump_nvidia_device_plugin_version |
| 41 | + push-to-fork: minikube-bot/minikube |
| 42 | + base: master |
| 43 | + delete-branch: true |
| 44 | + title: 'Addon nvidia-device-plugin: Update nvidia/k8s-device-plugin image from ${{ steps.bumpNvidiaDevicePlugin.outputs.OLD_VERSION }} to ${{ steps.bumpNvidiaDevicePlugin.outputs.NEW_VERSION }}' |
| 45 | + labels: ok-to-test |
| 46 | + body: | |
| 47 | + The [k8s-device-plugin](https://github.com/NVIDIA/k8s-device-plugin) project released a new k8s-device-plugin image |
| 48 | +
|
| 49 | + This PR was auto-generated by `make update-nvidia-device-plugin-version` using [update-nvidia-device-plugin-version.yml](https://github.com/kubernetes/minikube/tree/master/.github/workflows/update-nvidia-device-plugin-version.yml) CI Workflow. |
0 commit comments