From 159038a11538083b5d5fe57a387958f6e4629f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Colombaro?= Date: Thu, 26 Dec 2024 18:51:22 +0100 Subject: [PATCH 1/2] Add a generic status steps when chart CI is not required This will help to (auto-)merge PR when the charts are not affected. --- .github/workflows/ci.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f7806fe1..273b45bc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,9 +44,24 @@ jobs: action-matrix: '["lint-and-install", "install --upgrade"]' secrets: inherit + results: + name: Status + if: always() + runs-on: ubuntu-latest + needs: + - prepare + - test + steps: + - run: exit 1 + if: >- + ${{ + contains(needs.*.result, 'failure') || + contains(needs.*.result, 'cancelled') + }} + release: name: Release - if: contains(fromJSON('["refs/heads/main"]'), github.ref) + if: github.ref == 'refs/heads/main' uses: ./.github/workflows/release.yml permissions: contents: write @@ -54,4 +69,3 @@ jobs: id-token: write secrets: GPG_KEY_BASE64: ${{ secrets.GPG_KEY_BASE64 }} - GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} From e0e7b3856d365cb8431686847f2a065548ba93a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Colombaro?= Date: Fri, 27 Dec 2024 01:33:13 +0100 Subject: [PATCH 2/2] Update ci.yml --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 273b45bc..89361f73 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,3 +69,4 @@ jobs: id-token: write secrets: GPG_KEY_BASE64: ${{ secrets.GPG_KEY_BASE64 }} + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}