-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11863 from medyagh/bum_kubernetes_auto
auto bump kubernetes version using github actions
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: "update-kubernetes-versions" | ||
on: | ||
schedule: | ||
# every week on Thursday at 20:30 UTC | ||
- cron: "45 20 * * 4" | ||
env: | ||
GOPROXY: https://proxy.golang.org | ||
GO_VERSION: 1.16.4 | ||
jobs: | ||
bump-k8s-versions: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{env.GO_VERSION}} | ||
stable: true | ||
- name: Bump Kuberenetes Versions | ||
id: bumpk8s | ||
run: | | ||
make update-kubernetes-version | ||
echo "::set-output name=changes::$(git status --porcelain)" | ||
- name: Create PR | ||
if: ${{ steps.bumpk8s.outputs.changes != '' }} | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
token: ${{ secrets.MINIKUBE_BOT_PAT }} | ||
commit-message: bump default/newest kubernetes versions | ||
committer: minikube-bot <minikube-bot@google.com> | ||
author: minikube-bot <minikube-bot@google.com> | ||
branch: auto_bump_k8s_versions | ||
push-to-fork: minikube-bot/minikube | ||
base: master | ||
delete-branch: true | ||
title: 'bump default/newest kubernetes versions' | ||
body: | | ||
This PR was auto-generated by `make update-kubernetes-version` using [update-k8s-versions.yml](https://github.com/kubernetes/minikube/tree/master/.github/workflows) CI Workflow. | ||
Please only merge if all the tests pass. | ||
${{ steps.bumpk8s.outputs.changes }} | ||
This file contains 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