No description
  • JavaScript 99.3%
  • Makefile 0.7%
Find a file
updateclibot[bot] b17e60ca59
Some checks failed
Check dist/ / check-dist (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
Spell check with typos / typos (push) Has been cancelled
Updatecli - Update / updatecli (push) Has been cancelled
GitHub Actions Security Analysis with zizmor 🌈 / zizmor (push) Has been cancelled
Bump "eslint-plugin-jest" package version (#1126)
chore: Bump "eslint-plugin-jest" package version to 29.15.4

Made with ❤️️ by updatecli

Co-authored-by: updateclibot <bot@updatecli.io>
2026-07-01 14:27:01 +00:00
.github deps(github/action): bump all dependencies (#1102) 2026-06-03 15:31:14 +00:00
dist deps: update updatecli version to v0.118.0 (#1117) 2026-06-02 19:03:37 +00:00
src deps: update updatecli version to v0.118.0 (#1117) 2026-06-02 19:03:37 +00:00
testdata/updatecli.d Introduce Javascript Github Action 2022-05-19 21:24:56 +02:00
tests deps: update updatecli version to v0.118.0 (#1117) 2026-06-02 19:03:37 +00:00
updatecli chore: refactor Updatecli gha workflow & fix zizmor config file (#1069) 2026-03-28 11:59:16 +01:00
.eslintignore Introduce Javascript Github Action 2022-05-19 21:24:56 +02:00
.eslintrc.json code cleanup, add unit tests, hook up eslint and prettier (#100) 2022-07-22 19:40:50 +02:00
.gitignore code cleanup, add unit tests, hook up eslint and prettier (#100) 2022-07-22 19:40:50 +02:00
.prettierignore code cleanup, add unit tests, hook up eslint and prettier (#100) 2022-07-22 19:40:50 +02:00
.prettierrc.json code cleanup, add unit tests, hook up eslint and prettier (#100) 2022-07-22 19:40:50 +02:00
_typos.toml chore: add file exclusions to _typos.toml (#1064) 2026-03-26 09:25:03 +01:00
action.yaml feat: update to nodejs 24 (#1039) 2026-03-23 19:25:45 +01:00
CODE_OF_CONDUCT.md chore: sync default repository files (#1063) 2026-03-26 09:26:14 +01:00
index.js code cleanup, add unit tests, hook up eslint and prettier (#100) 2022-07-22 19:40:50 +02:00
jsconfig.json code cleanup, add unit tests, hook up eslint and prettier (#100) 2022-07-22 19:40:50 +02:00
LICENSE Update Apache 2 License (#1046) 2026-03-23 21:20:55 +01:00
licenses.txt Introduce Javascript Github Action 2022-05-19 21:24:56 +02:00
Makefile Introduce Javascript Github Action 2022-05-19 21:24:56 +02:00
package-lock.json Bump "eslint-plugin-jest" package version (#1126) 2026-07-01 14:27:01 +00:00
package.json Bump "eslint-plugin-jest" package version (#1126) 2026-07-01 14:27:01 +00:00
README.md Update README with deprecation notice 2026-06-05 16:43:24 +02:00
updatecli-compose.yaml chore: refactor Updatecli gha workflow & fix zizmor config file (#1069) 2026-03-28 11:59:16 +01:00

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.118.0.

  • version-file: The path to a file containing updatecli version. Supported file types are .updatecli-version and .tool-versions. See more details in about version-file.

Updatecli version file

If the version-file input is specified, the action will extract the version from the file and install it.

Supported files are .updatecli-version and .tool-versions. In .updatecli-version file, only the version should be specified (e.g., v0.86.1). In .tool-versions file, updatecli version should be preceded by the updatecli keyword (e.g., updatecli v0.86.1). The .tool-versions file supports version specifications in accordance with Semantic Versioning (semver).

If both version and version-file inputs are provided, the version input will be used.

If the file contains multiple versions, only the first one will be recognized.

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@main

      - 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.

Deprecation

Important

The branch v1 and v2 are deprecated and will be remove soon. You should use GitHub action version instead (or track the main branch if you really want to). You can migrate to the latest GitHub action version using the following Updatecli policy:

.updatecli-compose.yaml

# export UPDATECLI_GITHUB_TOKEN=<insert PAT>
# export UPDATECLI_GITHUB_USERNAME=<insert username>
# updatecli compose diff --file updatecli-compose.yaml
# updatecli compose apply --file updatecli-compose.yaml

valuesinline:
  scm:
    enabled: true
    kind: githubsearch
    search: |
      org:<replace with your GitHub organization>
      archived:false
    branch: "^main$|^master$" # branch accept regular expression
    email: <email associatedi with the git commits>
    limit: 0 # zero means no repository limit

policies:
  - name: Update Updatecli GitHub action version
    policy: ghcr.io/updatecli/policies/updatecli/githubaction:0.8.1

License

MIT. See LICENSE for more details.