style(outputs): uniform outputs to underline format

uniform outputs to underline format

BREAKING CHANGE: uniform outputs to underline format

Before:

outputs:
- new-release-published:
- new-release-version
- new-release-major-version
- new-release-minor-version
- new-release-patch-version

After:

outputs:
- new_release_published:
- new_release_version
- new_release_major_version
- new_release_minor_version
- new_release_patch_version
This commit is contained in:
cycjimmy 2019-10-21 13:30:51 +08:00
parent 463a57bad7
commit 4cea44f71a
4 changed files with 19 additions and 19 deletions

View file

@ -21,11 +21,11 @@ GitHub Action for [Semantic Release](https://github.com/semantic-release/semanti
* `extra_plugins`: [Optional] Extra plugins for pre-install. Default `""`.
* `dry_run`: [Optional] Whether to run semantic release in "dry-run" mode. It will override the dryRun attribute in your configuration file. Default `""`.
* outputs:
* `new-release-published`: Whether a new release was published. `true` or `false`
* `new-release-version`: Version of the new release
* `new-release-major-version`: Major version of the new release
* `new-release-minor-version`: Minor version of the new release
* `new-release-patch-version`: Patch version of the new release
* `new_release_published`: Whether a new release was published. `true` or `false`
* `new_release_version`: Version of the new release
* `new_release_major_version`: Major version of the new release
* `new_release_minor_version`: Minor version of the new release
* `new_release_patch_version`: Patch version of the new release
A simple example
```yaml
@ -53,7 +53,7 @@ steps:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Do something when a new release published
if: steps.semantic.outputs.new-release-published == 'true'
if: steps.semantic.outputs.new_release_published == 'true'
run: ...
```