deforaos-git-hook: fix matching tags and projects
This commit is contained in:
parent
0634732258
commit
22c9593d1d
|
@ -95,11 +95,12 @@ _jobs_tag()
|
||||||
{(
|
{(
|
||||||
tag="$1"
|
tag="$1"
|
||||||
repository="$2"
|
repository="$2"
|
||||||
|
project="${repository##*/}"
|
||||||
res=0
|
res=0
|
||||||
|
|
||||||
[ -z "$JOBS_TAG_RELEASE" ] && return 0
|
[ -z "$JOBS_TAG_RELEASE" ] && return 0
|
||||||
case "$tag" in
|
case "$tag" in
|
||||||
${repository}_*-*-*)
|
${project}_*-*-*)
|
||||||
for job in $JOBS_TAG_RELEASE; do
|
for job in $JOBS_TAG_RELEASE; do
|
||||||
#warn if the job is not available
|
#warn if the job is not available
|
||||||
if [ ! -x "$job" ]; then
|
if [ ! -x "$job" ]; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user