Skip to content

Commit

Permalink
fix!: change default behavior of artifactErrorsFailBuild (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored May 24, 2024
1 parent d7d6839 commit 3e3985f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
29 changes: 15 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,21 @@ steps:
## Inputs
| Name | Description | Default | Required |
|------------------------|---------------------------------------------------------------------------------------------------|-----------------|----------|
| allowUpdates | An optional flag which indicates if we should update a release if it already exists. | `true` | `false` |
| artifacts | The artifacts to upload. | `*artifacts/*` | `false` |
| body | The body of the release. | | `false` |
| deleteOtherPreReleases | Whether to delete other pre-releases. | `true` | `false` |
| deletePreReleaseTags | Whether to delete other pre-release tags. | `true` | `false` |
| discussionCategory | The category for the discussion. | `announcements` | `false` |
| generateReleaseNotes | Indicates if release notes should be automatically generated. | `true` | `false` |
| keepPreReleaseCount | The number of pre-releases to keep. | `2` | `false` |
| name | The version to create. | | `true` |
| prerelease | Whether the release is a prerelease. | `true` | `false` |
| tag | The tag to create. | | `true` |
| token | GitHub Token. | | `true` |
| Name | Description | Default | Required |
|-------------------------|------------------------------------------------------------------------------------------------------|-----------------|----------|
| allowUpdates | An optional flag which indicates if we should update a release if it already exists. | `true` | `false` |
| artifactErrorsFailBuild | An optional flag which indicates if we should fail the build if there are errors with the artifacts. | `false` | `false` |
| artifacts | The artifacts to upload. | `*artifacts/*` | `false` |
| body | The body of the release. | | `false` |
| deleteOtherPreReleases | Whether to delete other pre-releases. | `true` | `false` |
| deletePreReleaseTags | Whether to delete other pre-release tags. | `true` | `false` |
| discussionCategory | The category for the discussion. | `announcements` | `false` |
| generateReleaseNotes | Indicates if release notes should be automatically generated. | `true` | `false` |
| keepPreReleaseCount | The number of pre-releases to keep. | `2` | `false` |
| name | The version to create. | | `true` |
| prerelease | Whether the release is a prerelease. | `true` | `false` |
| tag | The tag to create. | | `true` |
| token | GitHub Token. | | `true` |

## See Also

Expand Down
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ inputs:
description: 'An optional flag which indicates if we should update a release if it already exists.'
required: false
default: 'true'
artifactErrorsFailBuild:
description: 'An optional flag which indicates if we should fail the build if there are errors with the artifacts.'
required: false
default: 'false'
artifacts:
description: 'The artifacts to upload.'
required: false
Expand Down Expand Up @@ -59,7 +63,7 @@ runs:
uses: ncipollo/[email protected]
with:
allowUpdates: ${{ inputs.allowUpdates }}
artifactErrorsFailBuild: true
artifactErrorsFailBuild: ${{ inputs.artifactErrorsFailBuild }}
artifacts: ${{ inputs.artifacts }}
body: ${{ inputs.body }}
commit: ${{ github.sha }}
Expand Down

0 comments on commit 3e3985f

Please sign in to comment.