From a032abb1a6e71ff6149e14dab104cf79c7d55d38 Mon Sep 17 00:00:00 2001 From: Vegetto Date: Mon, 8 Mar 2021 17:00:15 +0100 Subject: [PATCH] [helm-docs] Add helm-docs CI (#645) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * CI for helm-docs * add sudo to command * no need for input partm * use schedule as trigger * Update .github/workflows/charts-helm-docs.yaml Co-authored-by: ᗪєνιη ᗷυнʟ * Update .github/workflows/charts-helm-docs.yaml Co-authored-by: ᗪєνιη ᗷυнʟ Co-authored-by: angelnu Co-authored-by: ᗪєνιη ᗷυнʟ --- .github/workflows/charts-helm-docs.yaml | 48 +++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/charts-helm-docs.yaml diff --git a/.github/workflows/charts-helm-docs.yaml b/.github/workflows/charts-helm-docs.yaml new file mode 100644 index 00000000..45bec68f --- /dev/null +++ b/.github/workflows/charts-helm-docs.yaml @@ -0,0 +1,48 @@ +name: "Charts: helm-docs" + +on: + workflow_dispatch: + schedule: + - cron: "0 0 * * *" + +jobs: + update-helm-docs: + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Install Helm + uses: azure/setup-helm@v1 + with: + version: v3.4.0 + + - uses: actions/setup-python@v2 + with: + python-version: 3.7 + + - name: Install helm-docs + run: | + wget -O /tmp/helm-docs.deb https://github.com/norwoodj/helm-docs/releases/download/v1.5.0/helm-docs_1.5.0_linux_amd64.deb + sudo dpkg -i /tmp/helm-docs.deb + + - name: Update Helm docs + run: | + ./hack/gen-helm-docs.sh + + - name: Create pull request for helm-docs + uses: peter-evans/create-pull-request@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + branch: "helm-docs/ci" + delete-branch: true + title: "chore(docs) update helm-docs [ci-skip]" + signoff: true + committer: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>" + author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>" + commit-message: "chore(docs) update helm-docs [ci-skip]" + body: | + Signed-off-by: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> + labels: helm-docs