Skip to content

Commit dc885ae

Browse files
author
Frederic Spiers
committed
fix(ci): lower case repo name
1 parent c3c5c3a commit dc885ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
if: ${{ steps.chart-releaser.outputs.changed_charts }}
5151
run: |
5252
CHANGED_CHARTS="${{ steps.chart-releaser.outputs.changed_charts }}"
53+
REPO_LOWER=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
5354
5455
RELEASED_CHARTS=""
5556
for chart_directory in ${CHANGED_CHARTS//,/ }; do
@@ -63,8 +64,8 @@ jobs:
6364
helm package . --app-version=${APP_VERSION} --version=${CHART_VERSION}
6465
6566
# Push to GHCR
66-
echo "Pushing Helm chart $CHART_NAME-$CHART_VERSION.tgz to oci://ghcr.io/${{ github.repository }}"
67-
if helm push ${{ github.workspace }}/.cr-release-packages/${CHART_NAME}-${CHART_VERSION}.tgz oci://ghcr.io/${{ github.repository }}; then
67+
echo "Pushing Helm chart $CHART_NAME-$CHART_VERSION.tgz to oci://ghcr.io/${REPO_LOWER}"
68+
if helm push ${{ github.workspace }}/.cr-release-packages/${CHART_NAME}-${CHART_VERSION}.tgz oci://ghcr.io/${REPO_LOWER}; then
6869
echo "Successfully released $CHART_NAME-$CHART_VERSION to GHCR"
6970
else
7071
echo "Failed to push $CHART_NAME-$CHART_VERSION to GHCR"

0 commit comments

Comments
 (0)