Skip to content

Commit a92213b

Browse files
committed
fixup: add logs
1 parent 5c439c1 commit a92213b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

ci/lib.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ get_artifacts_url() {
9797
exit 1
9898
fi
9999

100+
echo >&2 "Using this artifacts url: $artifacts_url"
101+
100102
echo "$artifacts_url"
101103
}
102104

@@ -125,11 +127,20 @@ download_artifact() {
125127
# We assume production values unless specified
126128
local environment="${3-production}"
127129
local branch="${4-v$VERSION}"
130+
local artifacts_url="$(get_artifact_url "$artifact_name" "$environment" "$branch")"
131+
132+
echo "Inside download_artifact"
133+
echo "Using the following values:"
134+
echo "-artifact_name: $artifact_name"
135+
echo "-dst: $dst"
136+
echo "-environment: $environment"
137+
echo "-branch: $branch"
138+
echo "-artifacts_url: $artifacts_url"
128139

129140
local tmp_file
130141
tmp_file="$(mktemp)"
131142

132-
gh api "$(get_artifact_url "$artifact_name" "$environment" "$branch")" > "$tmp_file"
143+
gh api "$artifacts_url" > "$tmp_file"
133144
unzip -q -o "$tmp_file" -d "$dst"
134145
rm "$tmp_file"
135146
}

0 commit comments

Comments
 (0)