Skip to content

Commit

Permalink
fix tag grep build (#5)
Browse files Browse the repository at this point in the history
* tag grep on first occurence only
* fix grep tag
  • Loading branch information
erdoukki committed Feb 28, 2022
1 parent 7093b49 commit 01962e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/build-tag.sh
Expand Up @@ -5,8 +5,8 @@ sed -i -e "s|#PARALLEL_MAKE\s*=.*|PARALLEL_MAKE=max|" \
-e "s|PUBLISH_API_KEY\s*=.*|PUBLISH_API_KEY=$API_KEY|" \
local.mk

# PACKAGE=$(echo "refs/tags/dnscrypt-proxy-2.0.42" | grep -oE "([0-9a-zA-Z]*-)*")
GH_PACKAGE=$(echo "$GITHUB_REF" | grep -oE "([0-9a-zA-Z]*-)*")
# PACKAGE=$(echo "refs/tags/crowdsec-1.3.0-4" | grep -oE "([0-9a-zA-Z]*-)*" | head -1)
GH_PACKAGE=$(echo "$GITHUB_REF" | grep -oE "([0-9a-zA-Z]*-)*" | head -1)
GH_PACKAGE="${GH_PACKAGE:0:-1}"
echo "$GH_PACKAGE"

Expand Down

0 comments on commit 01962e8

Please sign in to comment.