mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-10 02:50:27 +00:00
try to fix the pull/N issue with circleci again
This commit is contained in:
parent
9553b1ef8f
commit
b6dd0c5248
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Get the branch name
|
# Get the branch name, removing any "/" characters from pull requests
|
||||||
BRANCH=$(git symbolic-ref --short HEAD 2>/dev/null)
|
BRANCH=$(git symbolic-ref --short HEAD | tr -d "/" 2>/dev/null)
|
||||||
|
|
||||||
# Check if the branch name is not master
|
# Check if the branch name is not master
|
||||||
if [ "$BRANCH" = "master" ]; then
|
if [ "$BRANCH" = "master" ]; then
|
||||||
@ -10,5 +10,4 @@ if [ "$BRANCH" = "master" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# If it is something other than master, append it
|
# If it is something other than master, append it
|
||||||
# Remove any "/" characters from e.g. "pull/N"
|
printf "yggdrasil-%s" "$BRANCH"
|
||||||
printf "yggdrasil-%s" "${BRANCH/\//}"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user