Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit 493f77e

Browse files
committed
Fix copy of crds folder
1 parent 3dfcc92 commit 493f77e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/helm-charts.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: "Install yq"
1212
run: |
1313
sudo snap install yq
14-
- name: Parse Tag
14+
- name: Parse Tag
1515
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
1616
- name: "Publish Helm3 Charts"
1717
env:
@@ -45,8 +45,9 @@ jobs:
4545
cd "${dir}" || exit
4646
mv Chart.yaml helm3.Chart.yaml
4747
mv helm2.Chart.yaml Chart.yaml
48-
if [ ${dir} = "operator" ]
48+
if [ "$(basename "$PWD")" = "operator" ]
4949
then
50+
echo "Copying CRDS to templates folder, as helm2 doesn't have native crds support."
5051
cp -R crds templates/crds
5152
fi
5253
echo "Restoring Helm2 Chart and replace Helm3 Chart temporary"
@@ -57,4 +58,4 @@ jobs:
5758
NAME=$(yq read - name < Chart.yaml)
5859
curl --silent --show-error --user "${USERNAME}:${PASSWORD}" --data-binary "@${NAME}-${RELEASE_VERSION}.tgz" "${HELM_REGISTRY}/api/charts"
5960
)
60-
done
61+
done

0 commit comments

Comments
 (0)