Skip to content

Commit c7c0903

Browse files
authored
Resolve the eval-gate-report renderer from the action's own checkout
1 parent 6fc1b64 commit c7c0903

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/actions/eval-gate-report/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ runs:
4242
exit 1
4343
fi
4444
45-
renderer="$GITHUB_WORKSPACE/.github/actions/eval-gate/render-comment.sh"
45+
# Resolve the renderer from the action's own checkout, not the consumer's workspace. When this
46+
# action is used remotely (dokimos-dev/dokimos/.github/actions/eval-gate-report@v0), the whole
47+
# repo is checked out under GITHUB_ACTION_PATH, so the sibling eval-gate script is reachable;
48+
# GITHUB_WORKSPACE would point at the consumer's repo, which does not have the script.
49+
renderer="$GITHUB_ACTION_PATH/../eval-gate/render-comment.sh"
4650
overall="NO_BASELINE"
4751
# gate-comment.md is CWD-relative; the comment step reads it from the same composite-step CWD.
4852
: > gate-comment.md

0 commit comments

Comments
 (0)