Skip to content

Commit 8e8be41

Browse files
fix: replace github.action_path with GITHUB_ACTION_PATH for containerized workflows (anthropics#133)
This change fixes an issue where the action fails in containerized workflow jobs. By using ${GITHUB_ACTION_PATH} instead of ${{ github.action_path }}, the action can properly locate its resources in container environments. Fixes anthropics#132 Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> Co-authored-by: ashwin-ant <ashwin-ant@users.noreply.github.com>
1 parent c7957fd commit 8e8be41

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@ runs:
8383
- name: Install Dependencies
8484
shell: bash
8585
run: |
86-
cd ${{ github.action_path }}
86+
cd ${GITHUB_ACTION_PATH}
8787
bun install
8888
8989
- name: Prepare action
9090
id: prepare
9191
shell: bash
9292
run: |
93-
bun run ${{ github.action_path }}/src/entrypoints/prepare.ts
93+
bun run ${GITHUB_ACTION_PATH}/src/entrypoints/prepare.ts
9494
env:
9595
TRIGGER_PHRASE: ${{ inputs.trigger_phrase }}
9696
ASSIGNEE_TRIGGER: ${{ inputs.assignee_trigger }}
@@ -147,7 +147,7 @@ runs:
147147
if: steps.prepare.outputs.contains_trigger == 'true' && steps.prepare.outputs.claude_comment_id && always()
148148
shell: bash
149149
run: |
150-
bun run ${{ github.action_path }}/src/entrypoints/update-comment-link.ts
150+
bun run ${GITHUB_ACTION_PATH}/src/entrypoints/update-comment-link.ts
151151
env:
152152
REPOSITORY: ${{ github.repository }}
153153
PR_NUMBER: ${{ github.event.issue.number || github.event.pull_request.number }}

0 commit comments

Comments
 (0)