Skip to content

updatecli

updatecli #2008

Workflow file for this run

name: updatecli
on:
# Allow to be run manually
workflow_dispatch:
schedule:
# Once per day at midnight UTC
- cron: '0 0 * * *'
push:
pull_request:
jobs:
updatecli:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup updatecli
uses: updatecli/updatecli-action@304d62420deffb7c824c9cad12942906e16e4352 # v2.76.0
- name: Diff
run: updatecli diff --config ./updatecli/updatecli.d --values ./updatecli/values.github-action.yaml
env:
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Apply
if: github.ref == 'refs/heads/master'
run: updatecli apply --config ./updatecli/updatecli.d --values ./updatecli/values.github-action.yaml
env:
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}