Skip to content

Commit 2814da9

Browse files
authored
[MH-13108] Use owner flag instead of workaround for download command (#160)
* Use owner flag instead of workaround for download command * Extract target from run
1 parent 36ef87d commit 2814da9

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

dist/index.js

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ async function run(): Promise<void> {
151151
${waitArgsString}; then
152152
exit 3;
153153
fi
154-
154+
155+
155156
# check status, exit with non-zero status if failed or stopped
156157
status=$(${cli} --verbosity ${verbosity} show \
157158
--owner ${owner} \
@@ -160,9 +161,10 @@ async function run(): Promise<void> {
160161
exit 2;
161162
fi
162163
163-
# download coverage (owner flag doesn't work for download, prepend instead)
164+
target=$(echo $run | cut -d'/' -f2)
165+
164166
if [ -n "${coverageOutput}" ]; then
165-
${cli} --verbosity ${verbosity} download ${owner}/$run -o ${coverageOutput};
167+
${cli} --verbosity ${verbosity} download --owner ${owner} ${project}/$target -o ${coverageOutput};
166168
fi
167169
`;
168170

0 commit comments

Comments
 (0)