From 251abe9240eeb0d35cb8ce77f772177110ac41bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Tue, 26 Sep 2023 18:00:00 +0200 Subject: [PATCH] ci: Adjust Postgres/MySQL failure notification (no-changelog) (#7262) Prevent DB test runs on PRs from spamming the build alerts channel. Ref: https://github.com/n8n-io/n8n/actions/runs/6298825743 --- .github/workflows/ci-postgres-mysql.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-postgres-mysql.yml b/.github/workflows/ci-postgres-mysql.yml index 2bb14a1c8..3d2195346 100644 --- a/.github/workflows/ci-postgres-mysql.yml +++ b/.github/workflows/ci-postgres-mysql.yml @@ -47,9 +47,9 @@ jobs: working-directory: packages/cli run: DB_POSTGRESDB_SCHEMA=alt_schema DB_TABLE_PREFIX=test_ pnpm test:postgres - - name: Notify Slack on failure + - name: Notify Slack on master failure uses: act10ns/slack@v2.0.0 - if: failure() + if: failure() && github.ref == 'refs/heads/master' with: status: ${{ job.status }} channel: '#updates-build-alerts'