Skip to content

Nightly yaml update #184

Nightly yaml update

Nightly yaml update #184

Workflow file for this run

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 'kiali-dev@googlegroups.com'
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