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.
- Host: GitHub
- URL: https://github.com/koki-develop/major-version-sync
- Owner: koki-develop
- License: mit
- Created: 2024-08-14T05:30:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-06T10:05:16.000Z (about 1 year ago)
- Last Synced: 2025-04-15T08:58:36.036Z (10 months ago)
- Language: TypeScript
- Homepage: https://github.com/marketplace/actions/major-version-sync
- Size: 649 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# major-version-sync
[](https://github.com/koki-develop/major-version-sync/releases/latest)
[](https://github.com/koki-develop/major-version-sync/actions/workflows/ci.yml)
[](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)