Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate releasing new versions of the "setup-java" action #182

Merged
merged 2 commits into from May 27, 2021
Merged

Automate releasing new versions of the "setup-java" action #182

merged 2 commits into from May 27, 2021

Conversation

MaksimZhukov
Copy link
Contributor

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_dispatch event to manually trigger a workflow run;
  • the release webhook event to automatically trigger workflow run when a new action version is released;
  • the releaseNewActionVersion environment 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.

Related issue

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

@maxim-lobanov maxim-lobanov merged commit ad01d13 into actions:main May 27, 2021
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.

None yet

6 participants