actions/git/tag/action.yaml

13 lines
258 B
YAML

name: Git Tag
desciption: Tag commit with version number
runs:
using: composite
container: alpine/git
steps:
- run: |
TAG=$(git describe --tags)
echo "$TAG"
git tag -f "$TAG" "$GITHUB_SHA"
git push -f origin "$TAG"