Skip to content

Commit

Permalink
Update get-workflow-job-id to use relative path to its script (#5994)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
huydhn authored Dec 2, 2024
1 parent 09f567b commit 7b311df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/get-workflow-job-id/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ runs:
run: |
set -eux
python3 .github/scripts/get_workflow_job_id.py "${GITHUB_RUN_ID}" "${RUNNER_NAME}"
python3 "${GITHUB_ACTION_PATH}/../../scripts/get_workflow_job_id.py" "${GITHUB_RUN_ID}" "${RUNNER_NAME}"
env:
GITHUB_TOKEN: ${{ inputs.github-token }}

0 comments on commit 7b311df

Please sign in to comment.