Skip to content

Commit

Permalink
fix: charts uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
notwedtm committed Dec 28, 2024
1 parent eb7168f commit c5f83f8
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: |
# Get the next version
NEXT_VERSION=1.0.8-dev.26
NEXT_VERSION=1.0.8-dev.27
echo "Next version: $NEXT_VERSION"
# Package the charts
Expand All @@ -69,29 +69,19 @@ jobs:
- name: Update Helm Index
run: |
# Create the index
cd .helm-charts
cp -r ../.cr-release-packages .
# Create required directories
mkdir -p .cr-index
cr index \
--owner prism-sh \
--git-repo prism-agent \
--pages-branch main
--pages-branch main \
--merge index.yaml
# Merge the new index into the existing index so we don't overwrite any other charts
cp .cr-index/index.yaml index.new
if [ -f index.yaml ]; then
# If index.yaml exists, merge with new index
yq eval-all 'select(fileIndex == 0).entries * select(fileIndex == 1).entries' index.yaml index.new > index.merged
mv index.merged index.yaml
else
# If no existing index.yaml, use the new one
mv index.new index.yaml
fi
# Move the index file to the right location
mv .cr-index/index.yaml index.yaml
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
Expand Down

0 comments on commit c5f83f8

Please sign in to comment.