Automate releasing new versions of the "setup-java" action by MaksimZhukov · Pull Request #182 · actions/setup-java (original) (raw)
Description:
Currently, releasing new versions of the setup-java action is the manual and unreliable process. In scope of this PR we added a workflow file in order to automate creating/updating a major version tag when a new setup-java version is released. We use the actions/publish-action action for this purpose.
Details:
We added:
- the
workflow_dispatchevent to manually trigger a workflow run; - the
releasewebhook event to automatically trigger workflow run when a new action version is released; - the
releaseNewActionVersionenvironment with protection rules to require a manual approval.
Reverting changes is almost the same process as updating major version tag. In case of any issues related to the updated tag, we have to manually trigger workflow run with the previous stable tag as a parameter.
Check list:
- Mark if documentation changes are required.
- Mark if tests were added or updated to cover the changes.