Skip to content

updatecli

updatecli #1960

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@1e7fcb1c5df159bca56c24c5335a050d611fbfdd # v2.74.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 }}