Skip to content

Commit ac573e8

Browse files
committed
Update action.yml
1 parent 8c4c690 commit ac573e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/actions/docker-setup/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ runs:
4040
run: |
4141
GIT_URL="${{ inputs.git_url }}"
4242
if [[ -z "$GIT_URL" ]]; then
43-
GIT_URL="ghcr.io"
43+
GIT_URL=$(echo "${GITHUB_SERVER_URL}" | awk -F/ '{print $3}' | sed 's/\/*$//')
44+
GIT_URL=$(echo "$GIT_URL" | sed 's/github\.com/ghcr\.io/g') # GIT_URL switch to ghcr.io registry for GitHub
4445
fi
4546
echo "GIT_URL=$GIT_URL" >> "$GITHUB_ENV"
4647

0 commit comments

Comments
 (0)