1
0

Trigger on `gh-v*.*.*' tags only

This commit is contained in:
Moikot
2020-12-18 11:54:05 +01:00
parent db65b6aed2
commit 0f6d044167
2 changed files with 3 additions and 10 deletions

View File

@@ -2,11 +2,8 @@ name: ci
on:
push:
branches:
- '**'
tags:
- 'v*.*.*'
pull_request:
- 'gh-v*.*.*'
jobs:
docker:
@@ -21,7 +18,7 @@ jobs:
run: |
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/}
if [[ $VERSION =~ ^v([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$ ]]; then
if [[ $VERSION =~ ^gh-v([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$ ]]; then
MAJOR="${BASH_REMATCH[1]}"
MINOR="${BASH_REMATCH[2]}"
PATCH="${BASH_REMATCH[3]}"