-
Notifications
You must be signed in to change notification settings - Fork 45
44 lines (42 loc) · 1.21 KB
/
update-kubernetes.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: "Update Kubernetes"
on:
pull_request:
paths:
- ".github/workflows/update-kubernetes.yaml"
- "ci/update-kubernetes.py"
push:
paths:
- ".github/workflows/update-kubernetes.yaml"
- "ci/update-kubernetes.py"
schedule:
- cron: '30 2 * * *'
workflow_dispatch: {}
jobs:
update-kubernetes:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: pip install ruamel.yaml
- name: Update Kubernetes
run: ./ci/update-kubernetes.py
- name: Show diff
run: git diff
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
if: github.repository == 'kr8s-org/kr8s'
with:
base: main
commit-message: "Update Kubernetes versions"
title: "Update Kubernetes versions"
reviewers: "jacobtomlinson"
token: "${{ secrets.BOT_TOKEN }}"
labels: "automerge"
branch: "upgrade-k8s-version"
body: |
A new Kubernetes version has been detected.
Updated CI and README badges.