Skip to content

Commit 2315c1b

Browse files
authored
fix(release): clean up index directory like cr (#89)
Copy the missing directory cleanup behavior from the chart releaser action.
1 parent b583e6a commit 2315c1b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ jobs:
181181
run: |
182182
owner="${GITHUB_REPOSITORY_OWNER}"
183183
repo="${GITHUB_REPOSITORY#*/}"
184+
# cr index writes index.yaml atomically via temporary files under .cr-index/
185+
rm -rf .cr-index
186+
mkdir -p .cr-index
184187
cr upload -o "$owner" -r "$repo" -c "$GITHUB_SHA" --skip-existing \
185188
--package-path "$PACKAGE_DIR"
186189
cr index -o "$owner" -r "$repo" --push --package-path "$PACKAGE_DIR"

0 commit comments

Comments
 (0)