From 46aa3f2aa162fef322d44ed8d1cab2c83345c7fb Mon Sep 17 00:00:00 2001 From: Sam Seay Date: Tue, 2 May 2023 15:21:35 +1200 Subject: [PATCH] Add check for bot author to steps that should be skipped (#37949) Add check for bot author to steps that should be skipped. --- .github/workflows/pr-build-and-e2e-tests.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pr-build-and-e2e-tests.yml b/.github/workflows/pr-build-and-e2e-tests.yml index e267c3502b2..0ddad0d4617 100644 --- a/.github/workflows/pr-build-and-e2e-tests.yml +++ b/.github/workflows/pr-build-and-e2e-tests.yml @@ -85,6 +85,7 @@ jobs: api-tests-run: name: Runs API tests. + if: github.event.pull_request.user.login != 'github-actions[bot]' runs-on: ubuntu-20.04 permissions: contents: read @@ -137,6 +138,7 @@ jobs: k6-tests-run: name: Runs k6 Performance tests + if: github.event.pull_request.user.login != 'github-actions[bot]' runs-on: ubuntu-20.04 permissions: contents: read @@ -167,6 +169,7 @@ jobs: if: | always() && ! github.event.pull_request.head.repo.fork && + github.event.pull_request.user.login != 'github-actions[bot]' && ( contains( needs.*.result, 'success' ) || contains( needs.*.result, 'failure' ) @@ -239,6 +242,7 @@ jobs: if: | always() && ! github.event.pull_request.head.repo.fork && + github.event.pull_request.user.login != 'github-actions[bot]' && ( contains( needs.*.result, 'success' ) || contains( needs.*.result, 'failure' )