Skip to content

Commit ce49279

Browse files
authored
Add repo-name param for calculate-docker-image action (#7205)
To extend the calculate-docker-image action used in other repo, such as pytorch/ao. Refer https://github.com/pytorch/ao/actions/runs/17938785568/job/51010166034#step:14:85, we're enabling xpu test in torchao and want to leverage pytorch ci image to do the test.
1 parent ec6a206 commit ce49279

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/actions/calculate-docker-image/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ inputs:
4242
description: If set to true, always push the image to ECR even if it exists.
4343
required: false
4444
default: false
45+
repo-name:
46+
description: The name of the repository containing the docker-build-dir.
47+
required: false
4548

4649
outputs:
4750
docker-image:
@@ -56,7 +59,7 @@ runs:
5659
shell: bash
5760
working-directory: ${{ inputs.working-directory }}
5861
env:
59-
REPO_NAME: ${{ github.event.repository.name }}
62+
REPO_NAME: ${{ inputs.repo-name || github.event.repository.name }}
6063
DOCKER_IMAGE_NAME: ${{ inputs.docker-image-name }}
6164
DOCKER_BUILD_DIR: ${{ inputs.docker-build-dir }}
6265
DOCKER_BUILD_SCRIPT: ${{ inputs.docker-build-script }}

0 commit comments

Comments
 (0)