Skip to content

Commit 7a67262

Browse files
committed
Use lowercase repository name
1 parent 7883b41 commit 7a67262

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/devcontainer-command.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,23 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v4
20-
20+
2121
- name: Login to GitHub Container Registry
2222
uses: docker/login-action@v3
2323
with:
2424
registry: ghcr.io
2525
username: ${{ github.repository_owner }}
2626
password: ${{ secrets.GITHUB_TOKEN }}
2727

28+
- name: Get devcontainer image name
29+
run: |
30+
image="ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}-devcontainer"
31+
echo "IMAGE_NAME=${image,,}" >> $GITHUB_ENV
32+
2833
- name: Run command in devcontainer
2934
uses: devcontainers/[email protected]
3035
with:
31-
imageName: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}-devcontainer
32-
cacheFrom: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}-devcontainer
36+
imageName: ${{ env.IMAGE_NAME }}
37+
cacheFrom: ${{ env.IMAGE_NAME }}
3338
push: always
3439
runCmd: ${{ inputs.run_cmd }}

0 commit comments

Comments
 (0)