Skip to content

Commit 1d5c5b4

Browse files
Merge pull request #1570 from rhopp/fixCherrypicking-1.8
fix: use source repo name from PR for rhads-config download
2 parents 1494fae + c833305 commit 1d5c5b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

integration-tests/tasks/get-rhads-config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ spec:
2828
set -euo pipefail
2929
3030
echo "Downloading rhads-config file:"
31-
GIT_REPO="$(jq -r '.git.repo // empty' <<< $JOB_SPEC)"
31+
# Extract the repository name from the source_repo_url
32+
SOURCE_REPO_URL=$(jq -r '.git.source_repo_url' <<< $JOB_SPEC)
33+
GIT_REPO=$(basename "$SOURCE_REPO_URL" .git)
3234
REPO_ORG=$(jq -r '.git.source_repo_org' <<< $JOB_SPEC)
3335
# Determine the branch name for the curl command.
3436
# If source_repo_branch starts with "refs/heads/", strip that prefix; otherwise, use as is.

0 commit comments

Comments
 (0)