Skip to content

refactor: improve error handling and code readability across scripts#374

Merged
appleboy merged 1 commit into
masterfrom
cmd
Mar 28, 2025
Merged

refactor: improve error handling and code readability across scripts#374
appleboy merged 1 commit into
masterfrom
cmd

Conversation

@appleboy

Copy link
Copy Markdown
Owner
  • Add log_error function for error handling
  • Simplify the detection of client platform and architecture
  • Use log_error for unsupported platform or architecture handling
  • Use consistent quoting for variable expansions
  • Improve readability for curl and chmod commands
  • Simplify the commands for running and capturing stdout

- Add `log_error` function for error handling
- Simplify the detection of client platform and architecture
- Use `log_error` for unsupported platform or architecture handling
- Use consistent quoting for variable expansions
- Improve readability for `curl` and `chmod` commands
- Simplify the commands for running and capturing stdout

Signed-off-by: appleboy <appleboy.tw@gmail.com>
@appleboy appleboy merged commit b6690ee into master Mar 28, 2025
@appleboy appleboy deleted the cmd branch March 28, 2025 16:25
luketainton pushed a commit to luketainton/actions_gha-workflows that referenced this pull request Nov 8, 2025
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [appleboy/ssh-action](https://github.com/appleboy/ssh-action) | action | patch | `v1.2.2` -> `v1.2.3` |

---

### Release Notes

<details>
<summary>appleboy/ssh-action (appleboy/ssh-action)</summary>

### [`v1.2.3`](https://github.com/appleboy/ssh-action/releases/tag/v1.2.3)

[Compare Source](appleboy/ssh-action@v1.2.2...v1.2.3)

##### Changelog

##### Features

- [`20d5c5b`](appleboy/ssh-action@20d5c5b): feat: add configurable curl insecure flag to GitHub action ([@&#8203;appleboy](https://github.com/appleboy))

##### Bug fixes

- [`170eebb`](appleboy/ssh-action@170eebb): fix: enhance binary download flow with robust error handling ([#&#8203;394](appleboy/ssh-action#394)) ([@&#8203;appleboy](https://github.com/appleboy))

##### Enhancements

- [`b27b9f8`](appleboy/ssh-action@b27b9f8): chore: refactor system to improve efficiency and update API usage ([@&#8203;appleboy](https://github.com/appleboy))
- [`0e19dd9`](appleboy/ssh-action@0e19dd9): chore: improve robustness and consistency across multiple scripts ([@&#8203;appleboy](https://github.com/appleboy))

##### Refactor

- [`b6690ee`](appleboy/ssh-action@b6690ee): refactor: improve error handling and code readability across scripts ([#&#8203;374](appleboy/ssh-action#374)) ([@&#8203;appleboy](https://github.com/appleboy))

##### Build process updates

- [`2b3c650`](appleboy/ssh-action@2b3c650): ci: unify and enhance GitHub workflow configurations ([@&#8203;appleboy](https://github.com/appleboy))
- [`ffd1eec`](appleboy/ssh-action@ffd1eec): ci: add workflow step for multi-command SSH testing ([#&#8203;386](appleboy/ssh-action#386)) ([@&#8203;appleboy](https://github.com/appleboy))
- [`53f5c5c`](appleboy/ssh-action@53f5c5c): ci: add automated Trivy security scanning via GitHub Actions ([@&#8203;appleboy](https://github.com/appleboy))

##### Documentation updates

- [`52a1840`](appleboy/ssh-action@52a1840): docs: update SSH action version to v1 in all README files ([#&#8203;372](appleboy/ssh-action#372)) ([@&#8203;appleboy](https://github.com/appleboy))
- [`689de3c`](appleboy/ssh-action@689de3c): docs: improve CLI messaging and error clarity for users ([@&#8203;appleboy](https://github.com/appleboy))
- [`9ca1cd2`](appleboy/ssh-action@9ca1cd2): docs: document the new `curl_insecure` configuration option ([@&#8203;appleboy](https://github.com/appleboy))
- [`bd83ba7`](appleboy/ssh-action@bd83ba7): docs: document and configure drone-ssh version usage ([#&#8203;381](appleboy/ssh-action#381)) ([@&#8203;appleboy](https://github.com/appleboy))
- [`b80f638`](appleboy/ssh-action@b80f638): docs: rewrite and unify documentation across all supported languages ([@&#8203;appleboy](https://github.com/appleboy))
- [`c7fbbc9`](appleboy/ssh-action@c7fbbc9): docs: add table of contents to multilingual README files ([@&#8203;appleboy](https://github.com/appleboy))
- [`4d84f05`](appleboy/ssh-action@4d84f05): docs: revamp and unify multi-language readme documentation ([@&#8203;appleboy](https://github.com/appleboy))
- [`8f3cc07`](appleboy/ssh-action@8f3cc07): docs: add comprehensive tables of contents to all README files ([@&#8203;appleboy](https://github.com/appleboy))
- [`8745f95`](appleboy/ssh-action@8745f95): docs: restructure and clarify parameter documentation across all readmes ([@&#8203;appleboy](https://github.com/appleboy))
- [`57f6f35`](appleboy/ssh-action@57f6f35): docs(readme): better wording for script\_path property ([#&#8203;387](appleboy/ssh-action#387)) ([@&#8203;kontur](https://github.com/kontur))
- [`3ca8a7c`](appleboy/ssh-action@3ca8a7c): docs: clarify script\_path usage in Chinese remote execution docs ([@&#8203;appleboy](https://github.com/appleboy))
- [`c680069`](appleboy/ssh-action@c680069): docs: add comprehensive documentation for project setup and usage ([@&#8203;appleboy](https://github.com/appleboy))
- [`91f3272`](appleboy/ssh-action@91f3272): docs: add Trivy security scan badge to all documentation ([@&#8203;appleboy](https://github.com/appleboy))

</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 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:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xLjMiLCJ1cGRhdGVkSW5WZXIiOiI0Mi4xLjMiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbInR5cGUvZGVwZW5kZW5jaWVzIl19-->

Reviewed-on: https://git.tainton.uk/actions/gha-workflows/pulls/43
Co-authored-by: renovate[bot] <renovate-bot@git.tainton.uk>
Co-committed-by: renovate[bot] <renovate-bot@git.tainton.uk>
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.

1 participant