Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump minimist from 1.2.5 to 1.2.8 #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,25 @@ Example:
bump-policy: 'ignore'
```

#### **bump-override:**
Overrides the bump type. Useful if the bump type is determined externally, and this action can be told how to bump the package version.
Options are as follows:

* `''` (default): fall-back to default logic for bump type
* `'patch'`: patch bump `(*.*.X)`
* `'minor'`: minor bump `(*.X.*)`
* `'major'`: major bump `(X.*.*)`

Example:
```yaml
- name: 'Automated Version Bump'
uses: 'phips28/gh-action-bump-version@master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
bump-policy: 'ignore'
```

#### [DEPRECATED] **push:**
**DEPRECATED** Set false you want to avoid pushing the new version tag/package.json. Example:
```yaml
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ inputs:
description: '[DEPRECATED] Set to false to skip pushing the new tag'
default: 'true'
required: false
bump-override:
description: 'Specific way to bump. Allowed values are patch,minor,major'
default: ''
required: false
outputs:
newTag:
description: 'The newly created tag'
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ const workspace = process.env.GITHUB_WORKSPACE;
version = 'prerelease';
}

const bumpOverride = process.env['INPUT_BUMP-OVERRIDE']
if (['patch', 'minor', 'major'].includes(bumpOverride))
version = bumpOverride;

console.log('version action after first waterfall:', version);

// case: if default=prerelease,
Expand Down
Loading