Nightly yaml update #199
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
name: Nightly yaml update | |
on: | |
schedule: | |
# Every night at 04:00 (UTC) | |
- cron: "0 4 * * *" | |
workflow_dispatch: | |
inputs: | |
release_branch: | |
description: Branch to release | |
required: true | |
default: main | |
type: string | |
jobs: | |
initialize: | |
name: Initialize | |
runs-on: ubuntu-20.04 | |
outputs: | |
target_branch: ${{ github.ref_name }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.inputs.release_branch || github.ref_name }} | |
- name: Log information | |
run: | | |
echo "Updating" | |
make update | |
- name: Configure git | |
run: | | |
git config user.email '[email protected]' | |
git config user.name 'kiali-bot' | |
- name: Update file | |
run: | | |
if [[ `git status --porcelain` ]]; then | |
echo -e "\e[1;32mOK\e[0m \e[1;39mkiali yaml change detected.\e[0m" | |
git add kiali.yaml | |
git commit -m "Update kiali.yaml to latest release" | |
git push origin | |
else | |
echo -e "\e[1;39mNo changes were detected.\e[0m" | |
fi | |
shell: bash |