We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f548931 commit a55a54aCopy full SHA for a55a54a
.github/workflows/release.yml
@@ -212,7 +212,7 @@ jobs:
212
fi
213
214
echo "publishing helm chart in the branch $charts_branch"
215
- if ! git show-ref --quiet "refs/heads/$charts_branch"; then
+ if ! git ls-remote --exit-code --heads origin "$charts_branch"; then
216
git checkout --orphan "$charts_branch"
217
git rm -rf .
218
@@ -224,10 +224,11 @@ jobs:
224
git add README.md LICENSE .gitignore
225
git commit -m "Initial commit for $charts_branch"
226
else
227
+ git checkout .
228
git checkout "$charts_branch"
229
230
- mkdir charts
231
+ mkdir -p charts
232
find dist/ -name '*.tgz' -exec tar -xf {} -C charts/ \;
233
234
git add charts/**/*
0 commit comments