From 72af09c7befebc1adf3293e74016371219c1da76 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 15 Jul 2024 15:57:10 +0200 Subject: [PATCH] build(deps): bump helm-docs to v1.14.2 (#674) Co-authored-by: Giovanni Toraldo --- .github/actions/setup-helm-docs/action.yml | 10 +++++++++- .../tests/actions/test-setup-helm-docs/action.yml | 7 ++----- .github/workflows/test.yml | 13 ++++++++++++- 3 files changed, 23 insertions(+), 7 deletions(-) diff --git a/.github/actions/setup-helm-docs/action.yml b/.github/actions/setup-helm-docs/action.yml index 16daec2ac..c75e7f687 100644 --- a/.github/actions/setup-helm-docs/action.yml +++ b/.github/actions/setup-helm-docs/action.yml @@ -4,6 +4,10 @@ inputs: version: description: 'Version of helm-docs' required: false +outputs: + version: + description: 'Version of helm-docs that was installed' + value: ${{ steps.version-detect.outputs.version }} runs: using: "composite" steps: @@ -12,4 +16,8 @@ runs: repo: norwoodj/helm-docs version: ${{ inputs.version != '' && inputs.version || env.DEFAULT_HELM_DOCS_VERSION }} env: - DEFAULT_HELM_DOCS_VERSION: 1.13.1 + DEFAULT_HELM_DOCS_VERSION: 1.14.2 + - name: Set version as output + shell: bash + id: version-detect + run: echo "version=$(helm-docs -v | awk '{print $NF}')" >> $GITHUB_OUTPUT diff --git a/.github/tests/actions/test-setup-helm-docs/action.yml b/.github/tests/actions/test-setup-helm-docs/action.yml index 645ba2943..6e4943c5d 100644 --- a/.github/tests/actions/test-setup-helm-docs/action.yml +++ b/.github/tests/actions/test-setup-helm-docs/action.yml @@ -2,16 +2,13 @@ name: Test setup-helm-docs description: > Just a test for setup-helm-docs inputs: - version: + expected-version: description: 'Version of helm-docs' required: false runs: using: composite steps: - - uses: ./.github/actions/setup-helm-docs - with: - version: ${{ inputs.version }} - name: Check helm-docs version shell: bash run: | - [ "$(helm-docs -v | awk '{print $NF}')" = "${{ inputs.version || '1.13.1' }}" ] + [ "$(helm-docs -v | awk '{print $NF}')" = "${{ inputs.expected-version }}" ] diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 875bc399b..89265c489 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,11 +34,22 @@ jobs: # # * another line # * one more + + #region Test setup-helm-docs - uses: ./.github/actions/setup-helm-docs + id: setup-helm-docs-latest - uses: ./.github/tests/actions/test-setup-helm-docs - - uses: ./.github/tests/actions/test-setup-helm-docs + with: + expected-version: ${{ steps.setup-helm-docs-latest.outputs.version }} + - uses: ./.github/actions/setup-helm-docs + id: setup-helm-docs-fixed-version with: version: 1.13.1 + - uses: ./.github/tests/actions/test-setup-helm-docs + with: + expected-version: ${{ steps.setup-helm-docs-fixed-version.outputs.version }} + #endregion + - uses: ./.github/actions/setup-jx-release-version - uses: ./.github/actions/setup-kubepug - uses: ./.github/actions/rancher