Skip to content

Commit 41ae675

Browse files
sylvansysclaude
andauthored
fix: Use github.action_path for shared script reference (#60)
The reviewer actions were sourcing the shared extract-result.sh script using github.workspace, which points to the consuming repo's directory. This fails when the action is used externally because the script only exists in constellos-actions. Changed to github.action_path which correctly references the action's own directory, allowing the script to be found relative to the action. Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent e5a9ba2 commit 41ae675

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/actions/code-quality-reviewer/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ runs:
130130
shell: bash
131131
run: |
132132
# Use shared extraction logic
133-
source "${{ github.workspace }}/.github/actions/shared/extract-result.sh"
133+
source "${{ github.action_path }}/../shared/extract-result.sh"
134134
135135
# Handle skipped case first
136136
if [ "${{ steps.validate.outputs.skip }}" = "true" ]; then

.github/actions/requirements-reviewer/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ runs:
169169
shell: bash
170170
run: |
171171
# Use shared extraction logic
172-
source "${{ github.workspace }}/.github/actions/shared/extract-result.sh"
172+
source "${{ github.action_path }}/../shared/extract-result.sh"
173173
174174
# Handle skipped case first
175175
if [ "${{ steps.validate.outputs.skip }}" = "true" ]; then

0 commit comments

Comments
 (0)