Skip to content

Commit

Permalink
docs: update readme to include v2 instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-paul-t committed Nov 13, 2021
1 parent 8dd659d commit fe96e0e
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ A Github Action for the [Uplift](https://github.com/gembaadvantage/uplift) seman

## Usage

Easily integrate uplift into your existing workflows, by using `@v1` of the action:
Easily integrate uplift into your existing workflows, by using `@v2` of the action:

```yaml
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: gembaadvantage/uplift-action@v1
- uses: gembaadvantage/uplift-action@v2
with:
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
Expand All @@ -27,7 +29,9 @@ steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: gembaadvantage/uplift-action@v1
- uses: gembaadvantage/uplift-action@v2
with:
args: release
env:
GITHUB_TOKEN: ${{ secrets.GH_UPLIFT }}
```
Expand All @@ -39,12 +43,11 @@ steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: gembaadvantage/uplift-action@v1
- uses: gembaadvantage/uplift-action@v2
with:
version: latest
dry-run: true
verbose: true
install-only: true
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
Expand All @@ -53,9 +56,8 @@ steps:

Customisable inputs can be provided through the `with` keys:

| Name | Required | Type | Default | Description |
| -------------- | -------- | ------- | -------- | ----------------------------------------------------------------------------------------------------------------- |
| `version` | No | String | `latest` | The uplift version, see [available](https://github.com/gembaadvantage/uplift/releases) |
| `dry-run` | No | Boolean | false | Set to true to prevent any changes from being committed. Useful if you want to calculate the next tag for example |
| `verbose` | No | Boolean | false | Set to true if you want verbose (_debug_) output from uplift |
| `install-only` | No | Boolean | false | Set to true to install uplift and expose the binary on the current PATH |
| Name | Required | Type | Default | Description |
| -------------- | -------- | ------- | -------- | -------------------------------------------------------------------------------------- |
| `version` | No | String | `latest` | The uplift version, see [available](https://github.com/gembaadvantage/uplift/releases) |
| `install-only` | No | Boolean | false | Set to true to install uplift and expose the binary on the current PATH |
| `args` | Yes | String | '' | A list of arguments that are used when running Uplift |

0 comments on commit fe96e0e

Please sign in to comment.