Skip to content

Commit 7b311df

Browse files
authored
Update get-workflow-job-id to use relative path to its script (#5994)
It's a silly mistake and I should have used the relative path to the `get_workflow_job_id.py` script here. Otherwise, this GH action will fail, for example https://github.com/pytorch/executorch/actions/runs/12060055309/job/33630870653. It works in PyTorch because there is a script with the same name there. I have done a similar fix before in https://github.com/pytorch/test-infra/blob/main/.github/actions/upload-benchmark-results/action.yml#L59
1 parent 09f567b commit 7b311df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/get-workflow-job-id/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ runs:
2828
run: |
2929
set -eux
3030
31-
python3 .github/scripts/get_workflow_job_id.py "${GITHUB_RUN_ID}" "${RUNNER_NAME}"
31+
python3 "${GITHUB_ACTION_PATH}/../../scripts/get_workflow_job_id.py" "${GITHUB_RUN_ID}" "${RUNNER_NAME}"
3232
env:
3333
GITHUB_TOKEN: ${{ inputs.github-token }}

0 commit comments

Comments
 (0)