An open API service indexing awesome lists of open source software.

https://github.com/tj-actions/release-tagger

:octocat: Github action to manage action releases.
https://github.com/tj-actions/release-tagger

actions github-actions

Last synced: 4 months ago
JSON representation

:octocat: Github action to manage action releases.

Awesome Lists containing this project

README

          

[![CI](https://github.com/tj-actions/release-tagger/workflows/CI/badge.svg)](https://github.com/tj-actions/release-tagger/actions?query=workflow%3ACI)
[![Update release version.](https://github.com/tj-actions/release-tagger/workflows/Update%20release%20version./badge.svg)](https://github.com/tj-actions/release-tagger/actions?query=workflow%3A%22Update+release+version.%22)
[![Public workflows that use this action.](https://img.shields.io/endpoint?url=https%3A%2F%2Fused-by.vercel.app%2Fapi%2Fgithub-actions%2Fused-by%3Faction%3Dtj-actions%2Frelease-tagger%26badge%3Dtrue)](https://github.com/search?o=desc\&q=tj-actions+release-tagger+path%3A.github%2Fworkflows+language%3AYAML\&s=\&type=Code)

[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)

## release-tagger

Automatically manage [Github action](https://docs.github.com/en/actions/creating-actions) releases by ensuring that a major release is always created or updated to point to the last minor/patch release.

![Screen Shot 2022-09-20 at 11 13 54 PM](https://user-images.githubusercontent.com/17484350/191419709-d13f6d43-91af-4209-95de-9a88d4e70d86.png)

## Usage

> \[!IMPORTANT]
>
> * Any single major version release decription would be overwritten by this action (i.e `v2`). In order to preserve the single major version release description you'll need to create a semantic version. (i.e `v2.0.0`)

```yaml
name: Tag release

on:
push:
tags:
- v*

jobs:
test:
runs-on: ubuntu-latest
name: Create or update major release tag
steps:
- uses: actions/checkout@v4
- name: Run release-tagger
uses: tj-actions/release-tagger@v6.0.0
```

## Inputs

| INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
|----------------------------------------------------------------------------------------|--------|----------|-------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [gh\_token](#input_gh_token) | string | false | `"${{ github.token }}"` | Github CLI token |
| [release\_notes\_file](#input_release_notes_file) | string | true | `"RELEASE_NOTES.md"` | File to write release notes
to |
| [retag\_major](#input_retag_major) | string | true | `"false"` | Enable retagging major version tags.
e.g v2.0.0 -> v2.0.1 (Retags v2 pointing to v2.0.1) |
| [token](#input_token) | string | false | `"${{ github.token }}"` | [GITHUB\_TOKEN](https://docs.github.com/en/free-pro-team@latest/actions/reference/authentication-in-a-workflow#using-the-github_token-in-a-workflow) or a repo scoped
[Personal Access Token](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token) |

* Free software: [MIT license](LICENSE)

If you feel generous and want to show some extra appreciation:

[![Buy me a coffee][buymeacoffee-shield]][buymeacoffee]

[buymeacoffee]: https://www.buymeacoffee.com/jackton1

[buymeacoffee-shield]: https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png

## Credits

This package was created with [Cookiecutter](https://github.com/cookiecutter/cookiecutter) using [cookiecutter-action](https://github.com/tj-actions/cookiecutter-action)

## Report Bugs

Report bugs at https://github.com/tj-actions/release-tagger/issues.

If you are reporting a bug, please include:

* Your operating system name and version.
* Any details about your workflow that might be helpful in troubleshooting.
* Detailed steps to reproduce the bug.

## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):



Raphael Boidol
Raphael Boidol

📖

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!