Updatecli #65
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: 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 }}" |