From 7e933c19bf20ce9b031a6bcd97cad1fcdd32c3fe Mon Sep 17 00:00:00 2001 From: Carsten Bach Date: Wed, 6 Mar 2024 22:56:36 +0100 Subject: [PATCH] Skip the workflow outside of GatherPress org --- .github/workflows/wordpress-version-checker.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/wordpress-version-checker.yml b/.github/workflows/wordpress-version-checker.yml index 806cb9936..e7e8e5e83 100644 --- a/.github/workflows/wordpress-version-checker.yml +++ b/.github/workflows/wordpress-version-checker.yml @@ -16,6 +16,10 @@ permissions: jobs: wordpress-version-checker: + # Prevent this workflow to run on forks outside of the GatherPress organization, + # because the required permission to create an issue would not be given and the workflow would fail. + # Using a condition check will skip the test. + if: github.repository_owner == 'GatherPress' runs-on: ubuntu-latest steps: - name: WordPress version checker