This is a fork of https://github.com/actions/publish-action. The only change I have done is that my fork works with tags, and not github releases.
The rest of the README below is copied verbatim from the original readme.
Please note: this action is for internal usage only, issues are disabled and contributing PRs will not be reviewed. We also do not recommend this action for public or production usage while it is still in development.
This action adds reliability to the new action versions publishing and handles the following cases:
- Update a major tag (v1, for example) to point to the latest release (v1.2.1, for example).
- Create a major tag from the latest released tag if a major tag doesn't exist
Alpha. Action is under development and internal testing.
This action can be triggered automatically when a release is created or manually using a workflow_dispatch
event. The actual major tag update will require manual approval.
See release-new-action-version.yml for usage example.
See action.yml for a complete description of input and output fields. Read more about action versioning notation in action-versioning.md.
To roll back a release in case of customer impact, start the workflow manually and specify the previous stable tag.
We don't accept contributions until the action is ready for production.
The scripts and documentation in this project are released under the MIT License.