Closed Djaytan closed 9 months ago
Issues
0 New issues
Measures
0 Security Hotspots
No data about Coverage
No data about Duplication
:tada: This PR is included in version 3.0.4 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Note: the change has been tested successfully in the
semantic-release-experiments
repository: https://github.com/Djaytan/semantic-release-experiments/actions/runs/7943087923.Google Shell Style Guide
This change rely on the Google Shell Style Guide which is available here: https://google.github.io/styleguide/shellguide.html
Most of the mentioned ones have been followed, especially these ones:
local
keyword.main()
functions instead of right into the script as is.readonly
whenever relevant (always in our case).stderr
instead ofstdout
.All the details are available in the Shell Style Guide provided above.
Signing logic extraction in separated Bash scripts
Extracting the whole signing logic into Bash scripts for the following reasons:
sign_gh_release_assets.sh
remains tight to GitHub and the GitHub CLI, the core signing logic available insigstore_file_signer.sh
is a lot more agnostic and thus reusable in different contexts and CIs platforms (that's particularly important since these files are expected to be reused in other projects with potentially different requirements).The idea of writing automated tests over the Bash scripts have been considered, and experimentation have been made with the ShellSpec tool. However, it was considered as too overkill for the few and pretty simple scripts that the project contains. Hence, the idea has been dropped to avoid unnecessary addition of complexity on the project.
Spigot plugin generation script adjustments
stdout
when executing themvn versions:set
commands for easier debugging in case of issue