-
Notifications
You must be signed in to change notification settings - Fork 93
39 lines (35 loc) · 1.13 KB
/
update-kubectl.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
name: cron-kubectl-update
on:
schedule:
- cron: '0 4 * * *'
workflow_dispatch: {}
jobs:
build-pr-kubectl:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create Kubectl Update
id: update
uses: ./.github/actions/kubectl-versions
- name: Create Pull Request # creates a PR if there are differences
uses: peter-evans/create-pull-request@v5
id: cpr
with:
token: ${{ secrets.GH_PAT }}
commit-message: Update kubectl versions in image
title: 'Automated Kubectl version update'
branch: automation/update-kubectl
delete-branch: true
labels: |
automated-pr
kubectl
type::chore
draft: false
base: "main"
body: "Automated changes by the [cron-kubectl-update](https://github.com/replicatedhq/kots/blob/main/.github/workflows/update-kubectl.yaml) GitHub action"
- name: Check outputs
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"