forked fromarduino/setup-arduino-cli
- Notifications
You must be signed in to change notification settings - Fork0
Commitf191944
authored
Add major version ref instructions to release documentation
Recommended practice for GitHub Actions(https://help.github.com/en/actions/building-actions/about-actions#versioning-your-action) is to add a ref to therepository for the major version, then update that ref on each release of that major version series. This allows usersof the action to configure their workflows to use the latest version of the action that won't introduce breakingchanges. Without this ref, the only options are:- pin a fixed ref - this means either frequent maintenance of the workflow to keep it up to date, or more likely using an outdated version of the action.- reference the tip of the default branch, subjecting the workflow to an unstable version of the action which may introduce bugs or breaking changes at any momentAlthough GitHub recommends using a tag, my understanding is that it's not considered best practices to alter Git tags.For this reason, I prefer using branch instead of a tag. There is no difference between the two as far as the usage ofthe action in a GitHub Workflow is concerned. The commits would be pushed to the branch on every release.I see GitHub even took the branch approach in one of the official actions:https://github.com/octokit/request-actionAnother prominent action using this approach:https://github.com/ruby/setup-rubyAnd our own actions:-https://github.com/arduino/setup-protoc-https://github.com/arduino/arduino-lint-action-https://github.com/arduino/compile-sketches-https://github.com/arduino/report-size-deltas-https://github.com/arduino/create-changelog-https://github.com/arduino/cpp-test-action1 parent2820737 commitf191944
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
63 | 69 | | |
64 | 70 | | |
65 | 71 | | |
| |||
0 commit comments
Comments
(0)