Skip to content
This repository was archived by the owner on Jan 31, 2024. It is now read-only.

Commit a71e556

Browse files
authored
update (#256)
1 parent 5eeba0c commit a71e556

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stakater-create-environment/helm/templates/clustertask.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,21 +80,21 @@ spec:
8080
echo "$FILE exists."
8181
GIT_TOKEN=`cat $FILE`
8282
83-
if [[ $params.GIT_URL == *github.com* ]]; then
83+
if [[ $(params.GIT_URL) == *github.com* ]]; then
8484
echo "This is a GitHub repository."
8585
PR_FIRST_COMMIT_HASH=`curl --header "Authorization: token $GIT_TOKEN" \
8686
$(params.PULL_REQUEST_COMMITS_API) | jq -r 'first.sha' | head -c 8`
8787
8888
# Check if the URL contains "gitlab.com"
89-
elif [[ $params.GIT_URL == *gitlab.com* ]]; then
89+
elif [[ $(params.GIT_URL) == *gitlab.com* ]]; then
9090
echo "This is a GitLab repository."
9191
PR_FIRST_COMMIT_HASH=`curl --header "PRIVATE-TOKEN: $GIT_TOKEN" \
9292
$(params.PULL_REQUEST_COMMITS_API) | jq -r '.sha // .head?.sha' | head -c 8`
9393
fi
9494
else
95-
if [[ $params.GIT_URL == *github.com* ]]; then
95+
if [[ $(params.GIT_URL) == *github.com* ]]; then
9696
PR_FIRST_COMMIT_HASH=`curl $(params.PULL_REQUEST_COMMITS_API) | jq -r 'first.sha' | head -c 8`
97-
elif [[ $repo_url == *gitlab.com* ]]; then
97+
elif [[ $(params.GIT_URL) == *gitlab.com* ]]; then
9898
PR_FIRST_COMMIT_HASH=`curl $(params.PULL_REQUEST_COMMITS_API) | jq -r '.sha // .head?.sha' | head -c 8`
9999
fi
100100
fi

0 commit comments

Comments
 (0)