Update generated content #26528
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
# This workflow, when done, is supposed to automatically update all | |
# generated content in these sections: | |
# - Changes and releases | |
# - CRDs (Management API) | |
# - CLI versions | |
# - Website header and footer | |
name: Update generated content | |
# Trigger by cronjob | |
on: | |
schedule: | |
# Every 20 minutes on Monday to Friday, between 7:00 and 18:00 UTC | |
- cron: "13,33,53 7-18 * * MON-FRI" | |
jobs: | |
update-generated-content: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Aggregate releases | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN }} | |
run: make changes | |
- name: Update CRD pages | |
run: make update-crd-reference | |
- name: Update CLI versions | |
run: make update-latest-versions | |
- name: Update website header and footer | |
run: make update-website-content | |
- name: Create or update pull request | |
uses: gr2m/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN }} | |
with: | |
title: Semi-automatic update of generated content | |
branch: "automatic-update-of-generated-content" | |
body: | | |
This PR has been created automatically by the 'Update generated content' Github workflow | |
to keep | |
- Changes and releases | |
- CLI versions | |
- CRD pages | |
- Website header and footer | |
up-to-date. | |
If you see relevant additions in the 'Files' tab, feel free to **Approve** this PR. | |
If not, leave the PR open. It will be updated periodically as new entries arrive in the | |
Changes and releases section or as CRD page sections are updated. |