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

https://github.com/koki-develop/major-version-sync

Syncs the major version tag with the new tag.
https://github.com/koki-develop/major-version-sync

Last synced: 10 months ago
JSON representation

Syncs the major version tag with the new tag.

Awesome Lists containing this project

README

          

# major-version-sync

[![GitHub Release](https://img.shields.io/github/v/release/koki-develop/major-version-sync)](https://github.com/koki-develop/major-version-sync/releases/latest)
[![CI](https://img.shields.io/github/actions/workflow/status/koki-develop/major-version-sync/ci.yml?branch=main&logo=github&style=flat&label=ci)](https://github.com/koki-develop/major-version-sync/actions/workflows/ci.yml)
[![Build](https://img.shields.io/github/actions/workflow/status/koki-develop/major-version-sync/build.yml?branch=main&logo=github&style=flat&label=build)](https://github.com/koki-develop/major-version-sync/actions/workflows/build.yml)

## Usage

This Action automatically syncs the major version tag when a semantic versioning tag is pushed.
For example, when you push a tag like `v1.2.3`, it will create or update a `v1` tag pointing to the same commit.

```yaml
on:
push:
tags:
- "v*.*.*"

jobs:
major-version-sync:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: koki-develop/major-version-sync@v1
with:
token: ${{ github.token }}
```

Alternatively, you can manually specify the version to sync using the `version` input.

```yaml
- uses: koki-develop/major-version-sync@v1
with:
version: v1.2.3
token: ${{ github.token }}
```

## LICENSE

[MIT](./LICENSE)