updatecli #1852
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: | |
# 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@92a13b95c2cd9f1c6742c965509203c6a5635ed7 # v2.68.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 }} |