File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,8 @@ get_artifacts_url() {
97
97
exit 1
98
98
fi
99
99
100
+ echo >&2 " Using this artifacts url: $artifacts_url "
101
+
100
102
echo " $artifacts_url "
101
103
}
102
104
@@ -125,11 +127,20 @@ download_artifact() {
125
127
# We assume production values unless specified
126
128
local environment=" ${3-production} "
127
129
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 "
128
139
129
140
local tmp_file
130
141
tmp_file=" $( mktemp) "
131
142
132
- gh api " $( get_artifact_url " $artifact_name " " $environment " " $branch " ) " > " $tmp_file "
143
+ gh api " $artifacts_url " > " $tmp_file "
133
144
unzip -q -o " $tmp_file " -d " $dst "
134
145
rm " $tmp_file "
135
146
}
You can’t perform that action at this time.
0 commit comments