-
-
Notifications
You must be signed in to change notification settings - Fork 361
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
Check for fatal on every line of stderr of the git command #1551
Conversation
Thanks for the PR! I like this change and I agree with the philosophy, I see this was also bought up in #1472 also. It's sometimes hard to really predict what an actual error is here as there doesn't seem to be a standardized way of checking for them outside of just doing a string match. I'll run this through the integration suite and bundle this with a few long-standing dependency changes I've been meaning to make, I'll likely wrap this up once I am back from my upcoming trip. |
src/git.ts
Outdated
@@ -314,8 +314,9 @@ export async function deploy(action: ActionInterface): Promise<Status> { | |||
|
|||
// If the push failed for any fatal reason other than being rejected, | |||
// there is a problem | |||
if (!rejected && pushResult.stderr.trim().startsWith('fatal:')) | |||
if (!rejected && pushResult.stderr.split(/\n/).some(s => s.trim().startsWith('fatal:')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is flagging a syntax error:
/home/runner/work/github-pages-deploy-action/github-pages-deploy-action/src/git.ts
317:96 error Parsing error: ')' expected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's my bad! Thought the change was too trivial to test but Murphy's law is quite right. Fixed now.
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | Type | Update | |---|---|---|---|---|---|---|---| | [@typescript-eslint/eslint-plugin](https://typescript-eslint.io/packages/eslint-plugin) ([source](https://togithub.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin)) | [`7.6.0` -> `7.7.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2feslint-plugin/7.6.0/7.7.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@typescript-eslint%2feslint-plugin/7.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@typescript-eslint%2feslint-plugin/7.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@typescript-eslint%2feslint-plugin/7.6.0/7.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@typescript-eslint%2feslint-plugin/7.6.0/7.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [@typescript-eslint/parser](https://typescript-eslint.io/packages/parser) ([source](https://togithub.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser)) | [`7.6.0` -> `7.7.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2fparser/7.6.0/7.7.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@typescript-eslint%2fparser/7.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@typescript-eslint%2fparser/7.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@typescript-eslint%2fparser/7.6.0/7.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@typescript-eslint%2fparser/7.6.0/7.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | devDependencies | minor | | [JamesIves/github-pages-deploy-action](https://togithub.com/JamesIves/github-pages-deploy-action) | `v4.5.0` -> `v4.6.0` | [![age](https://developer.mend.io/api/mc/badges/age/github-tags/JamesIves%2fgithub-pages-deploy-action/v4.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/github-tags/JamesIves%2fgithub-pages-deploy-action/v4.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/github-tags/JamesIves%2fgithub-pages-deploy-action/v4.5.0/v4.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/github-tags/JamesIves%2fgithub-pages-deploy-action/v4.5.0/v4.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | action | minor | | [prettier-plugin-tailwindcss](https://togithub.com/tailwindlabs/prettier-plugin-tailwindcss) | [`0.5.13` -> `0.5.14`](https://renovatebot.com/diffs/npm/prettier-plugin-tailwindcss/0.5.13/0.5.14) | [![age](https://developer.mend.io/api/mc/badges/age/npm/prettier-plugin-tailwindcss/0.5.14?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/prettier-plugin-tailwindcss/0.5.14?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/prettier-plugin-tailwindcss/0.5.13/0.5.14?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/prettier-plugin-tailwindcss/0.5.13/0.5.14?slim=true)](https://docs.renovatebot.com/merge-confidence/) | devDependencies | patch | | [vite](https://vitejs.dev) ([source](https://togithub.com/vitejs/vite/tree/HEAD/packages/vite)) | [`5.2.8` -> `5.2.10`](https://renovatebot.com/diffs/npm/vite/5.2.8/5.2.10) | [![age](https://developer.mend.io/api/mc/badges/age/npm/vite/5.2.10?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vite/5.2.10?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vite/5.2.8/5.2.10?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vite/5.2.8/5.2.10?slim=true)](https://docs.renovatebot.com/merge-confidence/) | overrides | patch | | [vite](https://vitejs.dev) ([source](https://togithub.com/vitejs/vite/tree/HEAD/packages/vite)) | [`5.2.8` -> `5.2.10`](https://renovatebot.com/diffs/npm/vite/5.2.8/5.2.10) | [![age](https://developer.mend.io/api/mc/badges/age/npm/vite/5.2.10?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vite/5.2.10?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vite/5.2.8/5.2.10?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vite/5.2.8/5.2.10?slim=true)](https://docs.renovatebot.com/merge-confidence/) | devDependencies | patch | --- ### Release Notes <details> <summary>typescript-eslint/typescript-eslint (@​typescript-eslint/eslint-plugin)</summary> ### [`v7.7.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#770-2024-04-15) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v7.6.0...v7.7.0) ##### 🚀 Features - **eslint-plugin:** replace `no-new-symbol` with `no-new-native-nonconstructor` ##### ❤️ Thank You - Dave - Josh Goldberg ✨ You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website. </details> <details> <summary>typescript-eslint/typescript-eslint (@​typescript-eslint/parser)</summary> ### [`v7.7.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#770-2024-04-15) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v7.6.0...v7.7.0) This was a version bump only for parser to align it with other projects, there were no code changes. You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website. </details> <details> <summary>JamesIves/github-pages-deploy-action (JamesIves/github-pages-deploy-action)</summary> ### [`v4.6.0`](https://togithub.com/JamesIves/github-pages-deploy-action/releases/tag/v4.6.0) [Compare Source](https://togithub.com/JamesIves/github-pages-deploy-action/compare/v4.5.0...v4.6.0) #### What's Changed - Check for fatal on every line of stderr of the git command by [@​ben-z](https://togithub.com/ben-z) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1551](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1551) - Migrated to eslint v9 - build(deps): bump github/codeql-action from 2 to 3 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1488](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1488) - Bump [@​babel/traverse](https://togithub.com/babel/traverse) from 7.8.3 to 7.23.2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1460](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1460) - build(deps-dev): bump eslint-plugin-jest from 27.2.3 to 27.6.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1469](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1469) - build(deps-dev): bump [@​types/node](https://togithub.com/types/node) from 20.10.0 to 20.11.6 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1507](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1507) - build(deps-dev): bump eslint-plugin-jest from 27.6.0 to 27.6.3 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1501](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1501) - build(deps-dev): bump [@​types/node](https://togithub.com/types/node) from 20.11.6 to 20.11.13 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1513](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1513) - build(deps): bump codecov/codecov-action from 3.1.4 to 3.1.6 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1512](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1512) - Bump [@​actions/core](https://togithub.com/actions/core) from 1.10.0 to 1.10.1 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1434](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1434) - Bump codecov/codecov-action from 3.1.6 to 4.0.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1515](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1515) - Bump [@​types/node](https://togithub.com/types/node) from 20.11.13 to 20.11.16 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1516](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1516) - Bump codecov/codecov-action from 4.0.0 to 4.0.1 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1517](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1517) - Bump [@​types/node](https://togithub.com/types/node) from 20.11.16 to 20.11.22 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1534](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1534) - Bump [@​types/node](https://togithub.com/types/node) from 20.11.22 to 20.11.25 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1537](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1537) - Bump codecov/codecov-action from 4.0.1 to 4.1.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1532](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1532) - Bump eslint-plugin-jest from 27.6.3 to 27.9.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1526](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1526) - Bump webfactory/ssh-agent from 0.8.0 to 0.9.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1520](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1520) - Bump actions/checkout in README by [@​verhovsky](https://togithub.com/verhovsky) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1523](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1523) - Bump codecov/codecov-action from 4.1.0 to 4.1.1 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1547](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1547) - Bump [@​types/node](https://togithub.com/types/node) from 20.11.25 to 20.11.30 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1545](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1545) - Bump [@​types/node](https://togithub.com/types/node) from 20.11.30 to 20.12.2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1550](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1550) - Bump [@​types/node](https://togithub.com/types/node) from 20.12.2 to 20.12.3 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1552](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1552) - Bump [@​types/node](https://togithub.com/types/node) from 20.12.3 to 20.12.6 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1557](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1557) - Bump codecov/codecov-action from 4.1.1 to 4.3.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1559](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1559) - Bump [@​types/node](https://togithub.com/types/node) from 20.12.6 to 20.12.7 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1558](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1558) - Bump [@​actions/github](https://togithub.com/actions/github) from 5.1.1 to 6.0.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1455](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1455) - build(deps): bump actions/upload-artifact from 3 to 4 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1490](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1490) - build(deps): bump actions/download-artifact from 3 to 4 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1489](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1489) #### New Contributors - [@​verhovsky](https://togithub.com/verhovsky) made their first contribution in [https://github.com/JamesIves/github-pages-deploy-action/pull/1523](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1523) - [@​ben-z](https://togithub.com/ben-z) made their first contribution in [https://github.com/JamesIves/github-pages-deploy-action/pull/1551](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1551) **Full Changelog**: JamesIves/github-pages-deploy-action@v4.5.0...v4.6.0 </details> <details> <summary>tailwindlabs/prettier-plugin-tailwindcss (prettier-plugin-tailwindcss)</summary> ### [`v0.5.14`](https://togithub.com/tailwindlabs/prettier-plugin-tailwindcss/blob/HEAD/CHANGELOG.md#0514---2024-04-15) [Compare Source](https://togithub.com/tailwindlabs/prettier-plugin-tailwindcss/compare/v0.5.13...v0.5.14) ##### Fixed - Fix detection of v4 projects on Windows ([#​265](https://togithub.com/tailwindlabs/prettier-plugin-tailwindcss/pull/265)) </details> <details> <summary>vitejs/vite (vite)</summary> ### [`v5.2.10`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small5210-2024-04-20-small) [Compare Source](https://togithub.com/vitejs/vite/compare/v5.2.9...v5.2.10) - revert: perf: use workspace root for fs cache ([#​15712](https://togithub.com/vitejs/vite/issues/15712)) ([#​16476](https://togithub.com/vitejs/vite/issues/16476)) ([77e7359](https://togithub.com/vitejs/vite/commit/77e7359)), closes [#​15712](https://togithub.com/vitejs/vite/issues/15712) [#​16476](https://togithub.com/vitejs/vite/issues/16476) - fix: add base to virtual html ([#​16442](https://togithub.com/vitejs/vite/issues/16442)) ([721f94d](https://togithub.com/vitejs/vite/commit/721f94d)), closes [#​16442](https://togithub.com/vitejs/vite/issues/16442) - fix: adjust esm syntax judgment logic ([#​16436](https://togithub.com/vitejs/vite/issues/16436)) ([af72eab](https://togithub.com/vitejs/vite/commit/af72eab)), closes [#​16436](https://togithub.com/vitejs/vite/issues/16436) - fix: don't add outDirs to watch.ignored if emptyOutDir is false ([#​16453](https://togithub.com/vitejs/vite/issues/16453)) ([6a127d6](https://togithub.com/vitejs/vite/commit/6a127d6)), closes [#​16453](https://togithub.com/vitejs/vite/issues/16453) - fix(cspNonce): don't overwrite existing nonce values ([#​16415](https://togithub.com/vitejs/vite/issues/16415)) ([b872635](https://togithub.com/vitejs/vite/commit/b872635)), closes [#​16415](https://togithub.com/vitejs/vite/issues/16415) - feat: show warning if root is in build.outDir ([#​16454](https://togithub.com/vitejs/vite/issues/16454)) ([11444dc](https://togithub.com/vitejs/vite/commit/11444dc)), closes [#​16454](https://togithub.com/vitejs/vite/issues/16454) - feat: write cspNonce to style tags ([#​16419](https://togithub.com/vitejs/vite/issues/16419)) ([8e54bbd](https://togithub.com/vitejs/vite/commit/8e54bbd)), closes [#​16419](https://togithub.com/vitejs/vite/issues/16419) - chore(deps): update dependency eslint-plugin-n to v17 ([#​16381](https://togithub.com/vitejs/vite/issues/16381)) ([6cccef7](https://togithub.com/vitejs/vite/commit/6cccef7)), closes [#​16381](https://togithub.com/vitejs/vite/issues/16381) ### [`v5.2.9`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small529-2024-04-15-small) [Compare Source](https://togithub.com/vitejs/vite/compare/v5.2.8...v5.2.9) - fix: `fsp.rm` removing files does not take effect ([#​16032](https://togithub.com/vitejs/vite/issues/16032)) ([b05c405](https://togithub.com/vitejs/vite/commit/b05c405)), closes [#​16032](https://togithub.com/vitejs/vite/issues/16032) - fix: fix accumulated stacks in error overlay ([#​16393](https://togithub.com/vitejs/vite/issues/16393)) ([102c2fd](https://togithub.com/vitejs/vite/commit/102c2fd)), closes [#​16393](https://togithub.com/vitejs/vite/issues/16393) - fix(deps): update all non-major dependencies ([#​16376](https://togithub.com/vitejs/vite/issues/16376)) ([58a2938](https://togithub.com/vitejs/vite/commit/58a2938)), closes [#​16376](https://togithub.com/vitejs/vite/issues/16376) - chore: update region comment ([#​16380](https://togithub.com/vitejs/vite/issues/16380)) ([77562c3](https://togithub.com/vitejs/vite/commit/77562c3)), closes [#​16380](https://togithub.com/vitejs/vite/issues/16380) - perf: reduce size of injected \__vite\_\_mapDeps code ([#​16184](https://togithub.com/vitejs/vite/issues/16184)) ([c0ec6be](https://togithub.com/vitejs/vite/commit/c0ec6be)), closes [#​16184](https://togithub.com/vitejs/vite/issues/16184) - perf(css): only replace empty chunk if imported ([#​16349](https://togithub.com/vitejs/vite/issues/16349)) ([e2658ad](https://togithub.com/vitejs/vite/commit/e2658ad)), closes [#​16349](https://togithub.com/vitejs/vite/issues/16349) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/SebastianGoeb/chinese-chart). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
….6.1 (#276) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [JamesIves/github-pages-deploy-action](https://togithub.com/JamesIves/github-pages-deploy-action) | action | minor | `v4.5.0` -> `v4.6.1` | --- ### Release Notes <details> <summary>JamesIves/github-pages-deploy-action (JamesIves/github-pages-deploy-action)</summary> ### [`v4.6.1`](https://togithub.com/JamesIves/github-pages-deploy-action/releases/tag/v4.6.1) [Compare Source](https://togithub.com/JamesIves/github-pages-deploy-action/compare/v4.6.0...v4.6.1) #### What's Changed ##### Fixes - Resolved an issue where workflows were suddenly failing due to a worktree in use error. The action will now attempt to create a temp branch name if the existing branch name is already checked out by a prior to step to ensure it can occur. This issue was only occurring in a handful of workflows, and likely stemmed from a git version change on the official GitHub runners. The actual root cause is still somewhat unknown. ##### Dependencies - build(deps-dev): bump eslint-plugin-jest from 28.2.0 to 28.5.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1577](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1577) - build(deps): bump [@​eslint/js](https://togithub.com/eslint/js) from 9.0.0 to 9.2.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1576](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1576) - build(deps-dev): bump eslint from 9.0.0 to 9.2.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1575](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1575) - build(deps): bump typescript-eslint from 7.7.0 to 7.8.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1569](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1569) - build(deps-dev): bump [@​types/node](https://togithub.com/types/node) from 20.12.7 to 20.12.9 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1578](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1578) - build(deps-dev): bump [@​types/node](https://togithub.com/types/node) from 20.12.9 to 20.12.10 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1579](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1579) - build(deps-dev): bump rimraf from 5.0.5 to 5.0.7 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1583](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1583) - build(deps): bump codecov/codecov-action from 4.3.0 to 4.4.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1588](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1588) - build(deps): bump typescript-eslint from 7.8.0 to 7.9.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1586](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1586) - build(deps): bump the eslint group with 3 updates by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1592](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1592) - build(deps-dev): bump the misc group with 2 updates by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1593](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1593) **Full Changelog**: JamesIves/github-pages-deploy-action@v4...v4.6.1 ### [`v4.6.0`](https://togithub.com/JamesIves/github-pages-deploy-action/releases/tag/v4.6.0) [Compare Source](https://togithub.com/JamesIves/github-pages-deploy-action/compare/v4.5.0...v4.6.0) #### What's Changed - Check for fatal on every line of stderr of the git command by [@​ben-z](https://togithub.com/ben-z) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1551](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1551) - Migrated to eslint v9 - build(deps): bump github/codeql-action from 2 to 3 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1488](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1488) - Bump [@​babel/traverse](https://togithub.com/babel/traverse) from 7.8.3 to 7.23.2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1460](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1460) - build(deps-dev): bump eslint-plugin-jest from 27.2.3 to 27.6.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1469](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1469) - build(deps-dev): bump [@​types/node](https://togithub.com/types/node) from 20.10.0 to 20.11.6 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1507](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1507) - build(deps-dev): bump eslint-plugin-jest from 27.6.0 to 27.6.3 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1501](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1501) - build(deps-dev): bump [@​types/node](https://togithub.com/types/node) from 20.11.6 to 20.11.13 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1513](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1513) - build(deps): bump codecov/codecov-action from 3.1.4 to 3.1.6 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1512](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1512) - Bump [@​actions/core](https://togithub.com/actions/core) from 1.10.0 to 1.10.1 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1434](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1434) - Bump codecov/codecov-action from 3.1.6 to 4.0.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1515](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1515) - Bump [@​types/node](https://togithub.com/types/node) from 20.11.13 to 20.11.16 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1516](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1516) - Bump codecov/codecov-action from 4.0.0 to 4.0.1 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1517](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1517) - Bump [@​types/node](https://togithub.com/types/node) from 20.11.16 to 20.11.22 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1534](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1534) - Bump [@​types/node](https://togithub.com/types/node) from 20.11.22 to 20.11.25 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1537](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1537) - Bump codecov/codecov-action from 4.0.1 to 4.1.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1532](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1532) - Bump eslint-plugin-jest from 27.6.3 to 27.9.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1526](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1526) - Bump webfactory/ssh-agent from 0.8.0 to 0.9.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1520](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1520) - Bump actions/checkout in README by [@​verhovsky](https://togithub.com/verhovsky) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1523](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1523) - Bump codecov/codecov-action from 4.1.0 to 4.1.1 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1547](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1547) - Bump [@​types/node](https://togithub.com/types/node) from 20.11.25 to 20.11.30 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1545](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1545) - Bump [@​types/node](https://togithub.com/types/node) from 20.11.30 to 20.12.2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1550](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1550) - Bump [@​types/node](https://togithub.com/types/node) from 20.12.2 to 20.12.3 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1552](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1552) - Bump [@​types/node](https://togithub.com/types/node) from 20.12.3 to 20.12.6 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1557](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1557) - Bump codecov/codecov-action from 4.1.1 to 4.3.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1559](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1559) - Bump [@​types/node](https://togithub.com/types/node) from 20.12.6 to 20.12.7 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1558](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1558) - Bump [@​actions/github](https://togithub.com/actions/github) from 5.1.1 to 6.0.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1455](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1455) - build(deps): bump actions/upload-artifact from 3 to 4 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1490](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1490) - build(deps): bump actions/download-artifact from 3 to 4 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/JamesIves/github-pages-deploy-action/pull/1489](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1489) #### New Contributors - [@​verhovsky](https://togithub.com/verhovsky) made their first contribution in [https://github.com/JamesIves/github-pages-deploy-action/pull/1523](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1523) - [@​ben-z](https://togithub.com/ben-z) made their first contribution in [https://github.com/JamesIves/github-pages-deploy-action/pull/1551](https://togithub.com/JamesIves/github-pages-deploy-action/pull/1551) **Full Changelog**: JamesIves/github-pages-deploy-action@v4.5.0...v4.6.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, 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 [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/andipaetzold/react-firehooks). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMDEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjM2My41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Description
Currently, we ignore git push errors and only fail when we find specific substrings in stdout or stderr starts with
fatal:
. This is insufficient to catch all errors because sometimesfatal:
can occur on lines that are not the first. For example:In the output above, the
fatal:
message occurs on the second line.Testing Instructions
Run this action without giving the job
contents: write
permission. Before this change, the job will silently fail. After this change, the job will raise an exception as expected.Additional Notes
The approach of ignoring all issues except some known ones is very error prone. We should instead do the opposite: ignore all known non-issues and raise an exception for everything else. But this takes more work and may be a breaking change for some use cases until we can gather a complete list of non-errors.