From a3a3cc3054c70910eb1ef2d4428eeae58336e409 Mon Sep 17 00:00:00 2001 From: Dennis Ameling Date: Thu, 19 Sep 2024 08:26:28 +0200 Subject: [PATCH] Self-hosted runner cleanup: run only in GfW org It doesn't make sense to run this scheduled job on forks, because they don't have the required secrets. Signed-off-by: Dennis Ameling --- .github/workflows/cleanup-self-hosted-runners.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cleanup-self-hosted-runners.yml b/.github/workflows/cleanup-self-hosted-runners.yml index 1fc624f8..b7e8bd69 100644 --- a/.github/workflows/cleanup-self-hosted-runners.yml +++ b/.github/workflows/cleanup-self-hosted-runners.yml @@ -17,6 +17,7 @@ on: # group specifically for self-hosted Actions Runners. jobs: delete-runner: + if: github.repository_owner == 'git-for-windows' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4