-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
50 additions
and
16 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 |
---|---|---|
|
@@ -66,7 +66,7 @@ $ ./configure | |
``` | ||
In the rest of the documentation, I will consider that you have installed the tool in your `$PATH` and remove the `.sh` extension from the binary name. | ||
|
||
## Usage | ||
## Usage (CLI) | ||
```bash | ||
$ badgetizr #[options] | ||
``` | ||
|
@@ -75,6 +75,30 @@ To see the different options available, you can use the `--help` option: | |
$ badgetizr --help | ||
``` | ||
|
||
## Usage GithubAction | ||
Instead of using the CLI, you can directly use the github action in your workflow. | ||
```yaml | ||
jobs: | ||
badgetizr: | ||
runs-on: ubuntu-latest #works also on macos-latest | ||
|
||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run Badgetizr | ||
uses: aiKrice/[email protected] | ||
with: | ||
pr_id: ${{ github.event.pull_request.number }} | ||
configuration: .badgetizr.yml | ||
pr_destination_branch: ${{ github.event.pull_request.base.ref }} | ||
pr_build_number: ${{ github.run_id }} | ||
pr_build_url: "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
``` | ||
|
||
## Configuration | ||
By default, the configuration file used is `.badgetizr.yml`. You can also specify a configuration file to use by using the `-c` option. | ||
```bash | ||
|
@@ -185,8 +209,9 @@ $ ./configure #optional, just for dependencies | |
$ ./badgetizer.sh | ||
``` | ||
|
||
## Release (for maintainers) | ||
To release the tool, you can run the `deploy-homebrew.sh` script by providing the version you want to release. Please respect the semantic versioning notation. | ||
## Publishing (for maintainers) | ||
To publish the tool, you can run the `publish.sh` script by providing the version you want to release. Please respect the semantic versioning notation. | ||
```bash | ||
./deploy-homebrew.sh 1.1.3 | ||
./publish.sh 1.1.3 | ||
``` | ||
This script will bump everything possible to keep everything up-to-date. |
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