mirror of
https://github.com/appleboy/telegram-action.git
synced 2026-10-03 09:40:44 +09:00
ci: restrict tag triggers to full semver
- Prevent the floating v1 major tag from cutting a goreleaser release or a docker image build
This commit is contained in:
@@ -5,7 +5,8 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
tags:
|
tags:
|
||||||
- "v*"
|
# full semver only; the floating major tag (v1) must not trigger builds
|
||||||
|
- "v[0-9]*.[0-9]*.[0-9]*"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ name: Goreleaser
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "*"
|
# full semver only; the floating major tag (v1) must not cut a release
|
||||||
|
- "v[0-9]*.[0-9]*.[0-9]*"
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|||||||
Reference in New Issue
Block a user