Skip to content

Update k0s Certs

Update k0s Certs #2

Workflow file for this run

name: Update k0s Certs
on:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *'
jobs:
update-certs-k0s:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true
- name: Check k0s Certs
id: check-certs-expired
run: bundle exec ruby test/config/test_k0s_certs_expired.rb
continue-on-error: true
- name: Update k0s Certs
if: steps.check-certs-expired.outcome == 'failure'
run: bundle exec ruby test/config/update_certs_k0s.rb
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
if: steps.check-certs-expired.outcome == 'failure'
with:
add-paths: |
test/config/*
commit-message: Update k0s Certs
branch: update_k0s_certs
author: ManageIQ Bot <bot@manageiq.org>
committer: ManageIQ Bot <bot@manageiq.org>
assignees: agrare
delete-branch: true
labels: enhancement
push-to-fork: miq_bot/kubeclient
title: Update k0s Certs
body: Update the saved kubeclient certificates
token: ${{ secrets.PR_TOKEN }}