Skip to content

Commit dd16579

Browse files
committed
refactor: use naming consistent with other CI scripts
1 parent fcf7876 commit dd16579

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hooks/post-command

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ ROOT=${BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_ROOT:-$(find_root)}
4545
SHA=$BUILDKITE_COMMIT
4646
TOKEN=$BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_TOKEN
4747
URL=${BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_URL:-https://api.check-run-reporter.com/api/v1/submissions}
48+
REPORT_DIR=$BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_REPORT
4849

4950
log 'Running check-run-reporter-buildkite-plugin with the following parameters'
5051
log "LABEL=$LABEL"
@@ -57,7 +58,7 @@ CMD="$CMD -F label'=$LABEL'"
5758
CMD="$CMD -F root='$ROOT'"
5859
CMD="$CMD -F sha='$SHA'"
5960

60-
for FILE in $BUILDKITE_PLUGIN_CHECK_RUN_REPORTER_REPORT; do
61+
for FILE in $REPORT_DIR; do
6162
echo "Preparing to upload '$FILE' to Check Run Reporter"
6263
CMD="$CMD -F 'report=@$(pwd)/$FILE'"
6364
done

0 commit comments

Comments
 (0)