Skip to content

Commit

Permalink
Create TagAlias.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat authored Jun 17, 2021
1 parent fd3d125 commit de72f54
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/TagAlias.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: TagAlias

on:
push:
tags:
- 'v*'

jobs:
TagAlias:
runs-on: ubuntu-latest
steps:
- name: Get the major version
id: get_version
run: echo ::set-output name=major::$(echo $GITHUB_REF | grep -o 'v[[:digit:]]*')

- name: Tag the alias
uses: richardsimko/update-tag@v1
with:
tag_name: ${{ steps.get_version.outputs.major }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit de72f54

Please sign in to comment.