You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 5, 2024. It is now read-only.
It would be a nice-to-have feature if this action had an option to prevent a release update if none of the attached assets were changed compared to a previous release.
The text was updated successfully, but these errors were encountered:
Hello! I don't think I fully understand what you mean by prevent a release update, do you mean fail the build? Implying it should check the assets of the previous release and match md5sums, or something?
Yeah, I think of it as a flag that users need to opt-in and is named like: release-only-if-assets-changed
It compares the assets of a previous release with those that would be attachted to the next release. If they don't match in number and in bytes (checksum), the release is performed as it is today. If they do match, the action entire action is an no-op, i.e. it skips the deletion, creation, and population of the next release.
Example
Perhaps an example helps to explain my idea better. Let's take https://github.com/sormuras/bach/releases - which uses this action to update the 17-ea tag on every push.
In the current state of the project, a single JAR file is produced by the CI workflow: [email protected]
Let's assume, that JAR file is reproducible 1:1. Meaning its bytes (checksum) only changes if a Java source file was changed.
If the release-only-if-assets-changed flag was set to true, an unrelated change (e.g. to the README.md file of the project), would not trigger a re-release of tag 17-ea, as the bytes (checksum) of the already attached [email protected] and the currently produced [email protected] are equal.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It would be a nice-to-have feature if this action had an option to prevent a release update if none of the attached assets were changed compared to a previous release.
The text was updated successfully, but these errors were encountered: