mirror of
https://github.com/clearml/clearml-helm-charts
synced 2025-02-07 05:18:11 +00:00
Fix ci (#223)
* Fixed: no chart change detected * Fixed: get entire depth
This commit is contained in:
parent
3f67293663
commit
550b7ca527
7
.github/helm-docs.sh
vendored
7
.github/helm-docs.sh
vendored
@ -1,6 +1,11 @@
|
||||
#!/bin/bash
|
||||
#!/bin/bash -xe
|
||||
|
||||
CHART_DIRS="$(git diff --find-renames --name-only "$(git rev-parse --abbrev-ref HEAD)" remotes/origin/main -- 'charts' | grep '[cC]hart.yaml' | sed -e 's#/[Cc]hart.yaml##g')"
|
||||
if [[ -z "$CHART_DIRS" ]]; then
|
||||
echo "No Chart.yaml changes detected, aborting helm-docs"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
HELM_DOCS_VERSION="1.11.0"
|
||||
|
||||
curl --silent --show-error --fail --location --output /tmp/helm-docs.tar.gz https://github.com/norwoodj/helm-docs/releases/download/v"${HELM_DOCS_VERSION}"/helm-docs_"${HELM_DOCS_VERSION}"_Linux_x86_64.tar.gz
|
||||
|
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
@ -12,6 +12,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3.5.0
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Run helm-docs
|
||||
run: .github/helm-docs.sh
|
||||
install-chart:
|
||||
|
Loading…
Reference in New Issue
Block a user