-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Improve action line documentation * Add interim logs to make debugging easier * Explicitly set pr title and body * Deduplicate title/body * Add documentation * Add documentation
- Loading branch information
Showing
7 changed files
with
111 additions
and
38 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
Changes proposed in this merge request: | ||
# Proposed Changes | ||
|
||
- Additions: | ||
- Updates: | ||
- Deletions: | ||
|
||
### Pre-merge Checklist | ||
## Pre-merge Checklist | ||
|
||
- [ ] Write + run tests | ||
- [ ] Update documentation | ||
- [ ] Update CHANGELOG and increment version | ||
- [ ] Update README and relevant documentation |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Clojure Dependency Update Action | ||
|
||
A simple GitHub action to create Pull Requests for your out-of-date dependencies in clojure projects. | ||
A GitHub Action to create Pull Requests for your out-of-date dependencies in clojure projects. | ||
This action can automatically update the following dependency files: | ||
|
||
- [deps.edn](https://github.com/clojure/tools.deps.alpha) | ||
|
@@ -9,7 +9,16 @@ This action can automatically update the following dependency files: | |
- [build.boot](https://github.com/boot-clj/boot) | ||
- [pom.xml](https://github.com/apache/maven) | ||
|
||
This action uses [antq](https://github.com/liquidz/antq) to check dependencies. | ||
This action uses [antq](https://github.com/liquidz/antq) to check and update dependencies. | ||
|
||
## Requirements | ||
|
||
The Actions platform is constantly being refined by the GitHub team. | ||
To ensure the safety of all end-users, they occasionally deprecate functionality which poses security risks. | ||
This impacts all first and third party Actions which you may use in your workflows. | ||
When diagnosing issues, please check your Actions tab for any deprecation notices. | ||
|
||
As of writing, this action requires that `actions/checkout` is set to at least `3.x.y`. | ||
|
||
## Sample Usage | ||
|
||
|
@@ -27,9 +36,11 @@ jobs: | |
|
||
steps: | ||
- name: Checkout Latest Commit | ||
uses: actions/[email protected] | ||
uses: actions/[email protected] | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Check deps | ||
- name: Check Clojure Dependencies | ||
uses: nnichols/clojure-dependency-update-action@v4 | ||
with: | ||
github-token: ${{ secrets.github_token }} | ||
|
@@ -50,10 +61,12 @@ jobs: | |
|
||
steps: | ||
- name: Checkout Latest Commit | ||
uses: actions/[email protected] | ||
uses: actions/[email protected] | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Check deps | ||
uses: nnichols/clojure-dependency-update-action@v4 | ||
- name: Check Clojure Dependencies | ||
uses: nnichols/clojure-dependency-update-action@v4 | ||
with: | ||
github-token: ${{ secrets.github_token }} | ||
git-username: nnichols | ||
|
@@ -65,21 +78,28 @@ jobs: | |
## Supported Arguments | ||
* `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 to `master` | ||
* `git-email`: The email address each commit should be associated with. Defaults to a github provided noreply address | ||
* `git-username`: The GitHub username each commit should be associated with. Defaults to `github-actions[bot]` | ||
* `excludes`: Artifact names to be excluded from the `antq` check. Defaults to an empty list. See [antq-action](https://github.com/liquidz/antq-action#inputs) for more information. | ||
* `directories`: Directories to search for project files in. Defaults to the root of the repository. See [antq-action](https://github.com/liquidz/antq-action#inputs) for more information. | ||
* `skips`: Build tools/files to skip by default. Defaults to an empty list. See [antq-action](https://github.com/liquidz/antq-action#inputs) for more information. | ||
* `batch`: Updates all outdated dependencies in a single pull request. Set to "true" to enable | ||
- `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 to `master` | ||
- `git-email`: The email address each commit should be associated with. Defaults to a github provided noreply address | ||
- `git-username`: The GitHub username each commit should be associated with. Defaults to `github-actions[bot]` | ||
- `excludes`: Artifact names to be excluded from the `antq` check. Defaults to an empty list. See [antq-action](https://github.com/liquidz/antq-action#inputs) for more information. | ||
- `directories`: Directories to search for project files in. Defaults to the root of the repository. See [antq-action](https://github.com/liquidz/antq-action#inputs) for more information. | ||
- `skips`: Build tools/files to skip by default. Defaults to an empty list. See [antq-action](https://github.com/liquidz/antq-action#inputs) for more information. | ||
- `batch`: Updates all outdated dependencies in a single pull request. Set to "true" to enable | ||
|
||
## Alternatives | ||
|
||
As the Clojure ecosystem matures, more first-class options for dependency management now support the language. | ||
The following is a growing list of alternative tools to consider: | ||
|
||
- [Renovatebot](https://github.com/renovatebot/renovate "The RenovateBot repository") | ||
|
||
## Acknowledgements | ||
|
||
Special thanks to [Chad Taylor](https://github.com/tessellator) for figuring out the initial bash script this is based on. | ||
Special thanks to [Chad Taylor](https://github.com/tessellator "Chad's GitHub Profile") for figuring out the initial bash script this is based on. | ||
|
||
## Licensing | ||
|
||
Copyright © 2021-2022 [Nick Nichols](https://nnichols.github.io/) | ||
Copyright © 2021-2023 [Nick Nichols](https://nnichols.github.io/) | ||
|
||
Distributed under the [MIT License](https://github.com/nnichols/clojure-dependency-update-action/blob/master/LICENSE) |
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