Skip to content

Commit 18ea8d3

Browse files
committed
Update current feature
1 parent 332139c commit 18ea8d3

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

e2e/argocd.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ NS=argocd
2121
argocd login --core
2222
kubectl config set-context --current --namespace="$NS"
2323

24-
2524
# Add support for Github PR, which do not have a branch name in the git repository
26-
if [ "$SPARKMEASURE_WORKBRANCH" == "HEAD" ]; then
27-
revision=$CIUX_IMAGE_TAG
25+
if [ "${GITHUB_EVENT_NAME:-}" = "pull_request" ]; then
26+
revision="$GITHUB_HEAD_REF"
2827
else
29-
revision="$SPARKMEASURE_WORKBRANCH"
28+
revision="$SPARKMEASURE_WORKBRANCH"
3029
fi
3130

3231
argocd app create $app_name --dest-server https://kubernetes.default.svc \

0 commit comments

Comments
 (0)