🔧 ci: update release trigger to match tags without v prefix
All checks were successful
continuous-integration/drone/tag Build is passing
All checks were successful
continuous-integration/drone/tag Build is passing
This commit is contained in:
parent
66c2343851
commit
86d8a44aa7
@ -53,7 +53,7 @@ trigger:
|
|||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
ref:
|
ref:
|
||||||
- refs/tags/v*
|
- refs/tags/[0-9]*
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build-x86_64
|
- name: build-x86_64
|
||||||
@ -79,7 +79,7 @@ steps:
|
|||||||
# Read DRONE_TAG via ENVIRON inside awk to avoid Drone's ${VAR} substitution
|
# Read DRONE_TAG via ENVIRON inside awk to avoid Drone's ${VAR} substitution
|
||||||
# which would replace ${TAG} with an empty string before the shell runs.
|
# which would replace ${TAG} with an empty string before the shell runs.
|
||||||
BODY=$(awk '
|
BODY=$(awk '
|
||||||
BEGIN { tag = ENVIRON["DRONE_TAG"]; gsub(/^v/, "", tag) }
|
BEGIN { tag = ENVIRON["DRONE_TAG"] }
|
||||||
/^## \[/ { in_section = (index($0, "[" tag "]") > 0); next }
|
/^## \[/ { in_section = (index($0, "[" tag "]") > 0); next }
|
||||||
in_section && /^## \[/ { exit }
|
in_section && /^## \[/ { exit }
|
||||||
in_section { print }
|
in_section { print }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user