71 lines
2.8 KiB
YAML
71 lines
2.8 KiB
YAML
|
name: "update-iso-image-versions"
|
||
|
on:
|
||
|
workflow_dispatch:
|
||
|
env:
|
||
|
GOPROXY: https://proxy.golang.org
|
||
|
GO_VERSION: '1.21.3'
|
||
|
permissions:
|
||
|
contents: read
|
||
|
jobs:
|
||
|
update-all:
|
||
|
runs-on: ubuntu-20.04
|
||
|
steps:
|
||
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
||
|
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
|
||
|
with:
|
||
|
go-version: ${{env.GO_VERSION}}
|
||
|
cache-dependency-path: ./go.sum
|
||
|
- name: Bump versions
|
||
|
id: bumpVersions
|
||
|
run: |
|
||
|
make update-buildkit-version
|
||
|
make update-cni-plugins-version
|
||
|
make update-containerd-version
|
||
|
make update-crictl-version
|
||
|
make update-docker-buildx-version
|
||
|
make update-docker-version
|
||
|
make update-nerdctl-version
|
||
|
make update-runc-version
|
||
|
make update-ubuntu-version
|
||
|
# 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
|
||
|
echo "changes<<EOF" >> $GITHUB_OUTPUT
|
||
|
echo "$(git status --porcelain)" >> $GITHUB_OUTPUT
|
||
|
echo "EOF" >> $GITHUB_OUTPUT
|
||
|
- name: Create PR
|
||
|
id: createPR
|
||
|
if: ${{ steps.bumpVersions.outputs.changes != '' }}
|
||
|
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38
|
||
|
with:
|
||
|
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||
|
commit-message: 'Kicbase/ISO: Update dependency versions'
|
||
|
committer: minikube-bot <minikube-bot@google.com>
|
||
|
author: minikube-bot <minikube-bot@google.com>
|
||
|
branch: bump_iso_image_versions
|
||
|
branch-suffix: short-commit-hash
|
||
|
push-to-fork: minikube-bot/minikube
|
||
|
base: master
|
||
|
delete-branch: true
|
||
|
title: 'Kicbase/ISO: Update dependency versions'
|
||
|
- uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
|
||
|
if: ${{ steps.bumpVersions.outputs.changes != '' }}
|
||
|
with:
|
||
|
github-token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||
|
script: |
|
||
|
github.rest.issues.createComment({
|
||
|
issue_number: ${{ steps.createPR.outputs.pull-request-number }},
|
||
|
owner: context.repo.owner,
|
||
|
repo: context.repo.repo,
|
||
|
body: 'ok-to-build-image'
|
||
|
})
|
||
|
- uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
|
||
|
if: ${{ steps.bumpVersions.outputs.changes != '' }}
|
||
|
with:
|
||
|
github-token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||
|
script: |
|
||
|
github.rest.issues.createComment({
|
||
|
issue_number: ${{ steps.createPR.outputs.pull-request-number }},
|
||
|
owner: context.repo.owner,
|
||
|
repo: context.repo.repo,
|
||
|
body: 'ok-to-build-iso'
|
||
|
})
|