A simple GitHub action to create Pull Requests for your out-of-date dependencies in clojure projects. This action can automatically update the following dependency files:
This action uses antq to check dependencies.
name: Clojure Dependency Checking
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Latest Commit
uses: actions/[email protected]
- name: Check deps
uses: nnichols/clojure-dependency-update-action@v4
with:
github-token: ${{ secrets.github_token }}
name: Batch Dependency Update
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Latest Commit
uses: actions/[email protected]
- name: Check deps
uses: nnichols/clojure-dependency-update-action@v4
with:
github-token: ${{ secrets.github_token }}
git-username: nnichols
skips: "pom"
batch: "true"
branch: "main"
directories: "cli web"
github-token
: The only required argument. Can either be the default token, as seen above, or a personal access token with write access to the repository.branch
: The branch that dependencies should be checked on and Pull Requests created against. Defaults tomaster
git-email
: The email address each commit should be associated with. Defaults to a github provided noreply addressgit-username
: The GitHub username each commit should be associated with. Defaults togithub-actions[bot]
excludes
: Artifact names to be excluded from theantq
check. Defaults to an empty list. See antq-action for more information.directories
: Directories to search for project files in. Defaults to the root of the repository. See antq-action for more information.skips
: Build tools/files to skip by default. Defaults to an empty list. See antq-action for more information.batch
: Updates all outdated dependencies in a single pull request. Set to "true" to enable
Special thanks to Chad Taylor for figuring out the initial bash script this is based on.
Copyright © 2021-2022 Nick Nichols
Distributed under the MIT License