Skip to content

feat ✨: add updatecli #22

feat ✨: add updatecli

feat ✨: add updatecli #22

Workflow file for this run

name: Updatecli
on:
pull_request:
pull_request_target:
types: [opened, synchronize, reopened, edited]
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
permissions:
contents: 'write'
pull-requests: 'write'
jobs:
updatecli:
runs-on: 'ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Updatecli in the runner
uses: updatecli/updatecli-action@v2
- name: Run Updatecli in Dry Run mode
run: 'updatecli diff --config ./updatecli/updatecli.d --values updatecli/values.yaml'
env:
UPDATECLI_GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
- name: Run Updatecli in apply mode
run: 'updatecli apply --config ./updatecli/updatecli.d --values updatecli/values.yaml'
env:
UPDATECLI_GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'