Skip to content

Commit

Permalink
✨ allow setting the working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
rsking committed Nov 24, 2023
1 parent 8f27fae commit e31951a
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 81 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ All inputs are optional.
| `increment` | 'Patch' | Sets the location for the version increment. Can be either `Patch` to increment the patch value, or `ReleaseLabel` to increment the release label. Only valid for version >= 1.0.82 |
| `packageIdRegex` | 'Altavec' | The regular expression to match in the package id |
| `packageIdReplace` | 'Mondo' | The text used to replace the match from `packageIdRegex` |
| `workingDirectory` | null | The working directory to operate in. Only valid for version >= 2.2.0 |

## Outputs

Expand All @@ -46,6 +47,7 @@ All inputs are optional.
increment: ReleaseLabel
packageIdRegex: Altavec
packageIdReplace: Mondo
workingDirectory: ${{ github.workspace }}
- run: echo 'Version: ${{ steps.semver.outputs.Version }}'
```
Expand Down
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ inputs:
packageIdReplace:
description: 'The text used to replace the match from packageIdRegex'
default: 'Mondo'
workingDirectory:
description: 'The working directory to operate in'
runs:
using: 'node16'
main: 'dist/index.js'
Loading

0 comments on commit e31951a

Please sign in to comment.