From de1d9c25809720457025b8cc9566f3b9ffd0ad43 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:51:11 +0100 Subject: [PATCH] ci: Don't run release when README was updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs --- .github/workflows/charts-release.yaml | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/.github/workflows/charts-release.yaml b/.github/workflows/charts-release.yaml index 281d4359..6857857a 100644 --- a/.github/workflows/charts-release.yaml +++ b/.github/workflows/charts-release.yaml @@ -26,6 +26,7 @@ jobs: with: token: ${{ steps.generate-token.outputs.token }} ref: master + fetch-depth: 0 - name: Install Kubernetes tools uses: yokawasa/action-setup-kube-tools@v0.8.0 @@ -87,33 +88,19 @@ jobs: uses: stefanzweifel/git-auto-commit-action@v4 with: file_pattern: charts/**/ - commit_message: Auto-update chart README [ci-skip] + commit_message: Auto-update chart README commit_user_name: k8s-at-home[bot] commit_user_email: k8s-at-home[bot]@users.noreply.github.com commit_author: k8s-at-home[bot] - - name: Store commit hash - id: store-commit-hash - run: | - 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}" - fi - - - name: Checkout - uses: actions/checkout@v2 - with: - token: ${{ steps.generate-token.outputs.token }} - ref: ${{ steps.store-commit-hash.outputs.commit_hash }} - fetch-depth: 0 - - name: Configure Git + if: ${{ steps.create-commit.outputs.changes_detected || 'unknown' }}" == "false" run: | git config user.name "k8s-at-home[bot]" git config user.email "k8s-at-home[bot]@users.noreply.github.com" - name: Run chart-releaser + if: ${{ steps.create-commit.outputs.changes_detected || 'unknown' }}" == "false" uses: helm/chart-releaser-action@v1.2.1 with: charts_dir: charts/*