Skip to content

Commit 66012af

Browse files
committed
Lowercase XPKG repo name to avoid xpkg push failure
Otherwise it will fail for GitHub orgs with uppercase chars in theri name with the error similar to the one below ``` crossplane: error: failed to parse package tag "xpkg.upbound.io/UpboundCare/function-azresourcegraph:v0.0.0-20241211161841-62aad247be2c": repository can only contain the characters `abcdefghijklmnopqrstuvwxyz0123456789_-./`: UpboundCare/function-azresourcegraph ``` Signed-off-by: Yury Tsarev <[email protected]>
1 parent 333e445 commit 66012af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,6 @@ jobs:
164164

165165
- name: Push Multi-Platform Package to Upbound
166166
if: env.XPKG_ACCESS_ID != ''
167-
run: "./crossplane --verbose xpkg push --package-files $(echo *.xpkg|tr ' ' ,) ${{ env.XPKG }}:${{ env.XPKG_VERSION }}"
167+
# XPKG repo name can't contain uppercase characters like UpboundCare, we need to lowercase if the GithubOrg contains them.
168+
# See https://github.com/orgs/community/discussions/25768#discussioncomment-8057564 for XPKG@L lowercase explanation
169+
run: "./crossplane --verbose xpkg push --package-files $(echo *.xpkg|tr ' ' ,) ${XPKG@L}:${{ env.XPKG_VERSION }}"

0 commit comments

Comments
 (0)