-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.14 KB
/
kiali-update.yml
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
40
41
42
43
44
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