From f74e6ebe076a85b449f295968f36c51072c3b57e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=E1=B4=87=CA=80=C9=B4=E1=B4=85=20S=E1=B4=84=CA=9C?= =?UTF-8?q?=E1=B4=8F=CA=80=C9=A2=E1=B4=87=CA=80s?= Date: Fri, 4 Feb 2022 14:21:33 +0100 Subject: [PATCH] ci: Exclude README generation from validation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs --- .github/workflows/charts-readme.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/charts-readme.yaml b/.github/workflows/charts-readme.yaml index ea819962..953259b7 100644 --- a/.github/workflows/charts-readme.yaml +++ b/.github/workflows/charts-readme.yaml @@ -45,10 +45,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - with: - fetch-depth: 0 - ref: ${{ github.head_ref }} - repository: ${{github.event.pull_request.head.repo.full_name}} - name: Install Kubernetes tools uses: yokawasa/action-setup-kube-tools@v0.8.0 @@ -74,7 +70,8 @@ jobs: echo "" done - - name: Generate README for changed charts + - name: Generate README for changed charts in Renovate PR's + if: inputs.isRenovatePR == 'true' run: | CHARTS=(${{ inputs.modifiedCharts }}) for i in "${CHARTS[@]}" @@ -89,6 +86,7 @@ jobs: - name: Create commit id: create-commit + if: inputs.isRenovatePR == 'true' uses: stefanzweifel/git-auto-commit-action@v4 with: file_pattern: charts/**/ @@ -99,7 +97,7 @@ jobs: - name: Store commit hash id: store-commit-hash run: | - if [ "${{ steps.create-commit.outputs.changes_detected }}" == "true" ]; then + if [ "${{ steps.create-commit.outputs.changes_detected || 'unknown' }}" == "true" ]; then echo '::set-output name=commit_hash::${{ steps.create-commit.outputs.commit_hash }}' else echo "::set-output name=commit_hash::${GITHUB_SHA}"