From 8dbc5bddc0ddfbd7496af656eb65b0c02b529de7 Mon Sep 17 00:00:00 2001 From: Germain Souquet Date: Tue, 15 Jun 2021 14:47:45 +0100 Subject: [PATCH] Disable comment-on-alert for PR coming from a fork --- .github/workflows/develop.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 273dea1062..b57a5de8c1 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -31,7 +31,9 @@ jobs: tool: 'jsperformanceentry' output-file-path: test/end-to-end-tests/performance-entries.json fail-on-alert: false - comment-on-alert: true + # Secrets are not passed to fork, the action won't be able to comment + # for community PRs + comment-on-alert: ${{ github.repository_owner == 'matrix-org' }} # Only temporary to monitor where failures occur alert-comment-cc-users: '@gsouquet' github-token: ${{ secrets.DEPLOY_GH_PAGES }}