actions/git/tag/action.yaml

12 lines
249 B
YAML
Raw Normal View History

2023-08-06 20:53:44 -04:00
name: Git Tag
desciption: Tag commit with version number
runs:
using: composite
container: alpine/git
steps:
- run: |
2023-08-06 21:06:08 -04:00
TAG=$(git describe --abbrev=0 --tags)
2023-08-06 21:02:01 -04:00
git tag -f "$TAG" "$GITHUB_SHA"
git push -f origin "$TAG"