Skip to content

Commit

Permalink
Add action to add major version tag (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat authored Jan 3, 2020
1 parent b845f81 commit eab8be8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/version-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: version-tag
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
version-tag:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: tag
run: |
git remote set-url origin https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
git tag $(basename ${TAG%.*.*})
git tag $(basename ${TAG%.*})
git push origin -f --tags
env:
TAG: ${{ github.ref }}

0 comments on commit eab8be8

Please sign in to comment.