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

Throw error only if exit code is no zero. #358

Merged
merged 6 commits into from
Dec 27, 2021

Conversation

dmitry-shibanov
Copy link
Contributor

Description:
In scope of this pull request we resolve the issue related to warning can produce error. Sometimes warning can be written to stderr output, but exit code is 0. We have to add a check to throw error only if exit code is not null.

Related issue:

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

@dmitry-shibanov dmitry-shibanov marked this pull request as ready for review December 14, 2021 07:35
@dmitry-shibanov dmitry-shibanov changed the title Throw error only if exit code is node zero and error output is not null. Throw error only if exit code is note zero. Dec 27, 2021
@dmitry-shibanov dmitry-shibanov merged commit 9a74eb4 into actions:main Dec 27, 2021
@dmitry-shibanov dmitry-shibanov changed the title Throw error only if exit code is note zero. Throw error only if exit code is no zero. Dec 27, 2021
deining pushed a commit to deining/setup-node that referenced this pull request Nov 9, 2023
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.5.4 to 4.5.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v4.5.4...v4.5.5)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
CrispyBaguette pushed a commit to CrispyBaguette/wasm-palette-converter that referenced this pull request Nov 8, 2024
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [actions/setup-node](https://github.com/actions/setup-node) | action | patch | `v2.5.0` -> `v2.5.2` |

---

### Release Notes

<details>
<summary>actions/setup-node (actions/setup-node)</summary>

### [`v2.5.2`](https://github.com/actions/setup-node/releases/tag/v2.5.2): Update @&#8203;actions/core for v2

[Compare Source](actions/setup-node@v2.5.1...v2.5.2)

In scope of this release we updated actions/core to 1.10.0 and actions/tool-cache to 1.7.2 for v2: actions/setup-node#713

### [`v2.5.1`](https://github.com/actions/setup-node/releases/tag/v2.5.1): Fix logic of error handling for npm warning and uncaught exception

[Compare Source](actions/setup-node@v2.5.0...v2.5.1)

In scope of this release we fix logic of error handling related to caching (actions/setup-node#358) and (actions/setup-node#359).

In the previous behaviour we relied on `stderr` output to throw error. The warning messages from package managers can be written to the stderr's output. For now the action will throw an error only if exit code differs from zero. Besides, we add logic to сatch and log unhandled exceptions.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xNDIuNSIsInVwZGF0ZWRJblZlciI6IjM4LjE0Mi41IiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->

Reviewed-on: https://gitea.bruyant.xyz/alexandre/PaletteSwitcher/pulls/38
Co-authored-by: Renovate <renovate@bruyant.xyz>
Co-committed-by: Renovate <renovate@bruyant.xyz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants