https://github.com/arran4/git-tag-inc-action
An action for incrementing semantic git tags
https://github.com/arran4/git-tag-inc-action
git-tag-inc github-action github-workflow semantic-tagging semantic-versions tag-manager
Last synced: about 2 months ago
JSON representation
An action for incrementing semantic git tags
- Host: GitHub
- URL: https://github.com/arran4/git-tag-inc-action
- Owner: arran4
- License: gpl-2.0
- Created: 2026-03-25T06:54:42.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2026-03-25T08:16:12.000Z (2 months ago)
- Last Synced: 2026-03-26T12:16:10.037Z (2 months ago)
- Topics: git-tag-inc, github-action, github-workflow, semantic-tagging, semantic-versions, tag-manager
- Language: Shell
- Homepage: https://github.com/arran4/git-tag-inc
- Size: 15.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Agents: AGENTS.md
Awesome Lists containing this project
README
# git-tag-inc GitHub Action
This GitHub Action downloads and installs [`git-tag-inc`](https://github.com/arran4/git-tag-inc).
## Usage
```yaml
name: Example workflow
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use git-tag-inc Action
uses: arran4/git-tag-inc-action@v1
with:
# Optional: specify an action
action: 'patch'
- name: Use git-tag-inc Action (Minor)
uses: arran4/git-tag-inc-action@v1
with:
action: 'minor'
- name: Use git-tag-inc Action (Combination)
uses: arran4/git-tag-inc-action@v1
with:
action: 'patch rc2'
- name: Use git-tag-inc Action (skip forwards)
uses: arran4/git-tag-inc-action@v1
with:
action: '--skip-forwards test1'
- name: Use git-tag-inc Action (dry run)
uses: arran4/git-tag-inc-action@v1
with:
action: '--dry patch'
- name: Use git-tag-inc Action (capture version)
id: tagger
uses: arran4/git-tag-inc-action@v1
with:
action: 'patch'
- name: Print captured version
run: echo "The new version is ${{ steps.tagger.outputs.version }}"
```
## Inputs
| Name | Description | Default | Required |
|---|---|---|---|
| `version` | The version of `git-tag-inc` to install (e.g. `latest`, `v0.0.18`). | `latest` | No |
| `github-token` | GitHub token to authenticate API requests to prevent rate limiting. | `${{ github.token }}` | No |
| `action` | The action to run with `git-tag-inc`. | `''` | No |
| `mode` | The execution mode: `install`, `install and run`, or `run`. | `install and run` | No |
## Outputs
| Name | Description |
|---|---|
| `version` | The resulting version tag after running `git-tag-inc`. |
## License
This action is distributed under the same terms as the `git-tag-inc` tool itself. See the `LICENSE` file for details.