-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.1 KB
/
updatecli.yaml
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
---
name: Updatecli
on:
# Trigger Updatecli if a new commit land on the main branch
push:
branches: [ main ]
# Trigger Updatecli if a pullrequest is open targeting the main branch.
# This is useful to test Updatecli manifest change
pull_request:
branches: [ main ]
# Manually trigger Updatecli via GitHub UI
workflow_dispatch:
# Trigger Updatecli once day by a cronjob
schedule:
# * is a special character in YAML, so you have to quote this string
# Run once a day
- cron: '0 0 * * *'
permissions:
contents: "write"
pull-requests: "write"
jobs:
updatecli:
runs-on: "ubuntu-latest"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Updatecli in the runner
uses: updatecli/updatecli-action@v2
- uses: azure/setup-kubectl@v4
id: kubectl
- uses: azure/setup-helm@v4.2.0
id: helm
- name: Run Updatecli in apply mode
run: "updatecli --experimental apply --config ./updatecli/updatecli.d --values updatecli/values.yaml --clean=true"
env:
UPDATECLI_GITHUB_TOKEN: "${{ secrets.UPDATECLI_GITHUB_TOKEN }}"