Skip to content
fast-forward

GitHub Action

Updatecli Installer

v2.70.0 Latest version

Updatecli Installer

fast-forward

Updatecli Installer

Install a specific Updatecli version

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Updatecli Installer

uses: updatecli/updatecli-action@v2.70.0

Learn more about this action in updatecli/updatecli-action

Choose a version

Updatecli Github Action

Usage

Install Updatecli for GitHub Action

Options

version: Specify the Updatecli version to install. Accepted values are any valid releases such as v0.25.0

Workflow

name: updatecli

on:
  workflow_dispatch:
  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@v2

      - name: Install Updatecli in the runner
        uses: updatecli/updatecli-action@v2

      - name: Run Updatecli in Dry Run mode
        run: updatecli diff
        env:
          UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

      - name: Run Updatecli in Apply mode
        run: updatecli apply --config updatecli/updatecli.d
        env:
          UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

WARNING: Dont enable --debug mode in Github Action as it may leak information.

License

MIT. See LICENSE for more details.