From 7e3dc9b2f2c291131f832a2bc7727d2b7b49e094 Mon Sep 17 00:00:00 2001 From: Carter Date: Fri, 25 Aug 2023 14:23:50 -0700 Subject: [PATCH] Disable janitor in forks (#1407) --- .github/workflows/janitor.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/janitor.yaml b/.github/workflows/janitor.yaml index 5fa30d879..47fec1059 100644 --- a/.github/workflows/janitor.yaml +++ b/.github/workflows/janitor.yaml @@ -9,6 +9,8 @@ permissions: contents: read jobs: cluster-sweeper: + # disable in forks + if: github.repository == 'awslabs/amazon-eks-ami' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -21,6 +23,8 @@ jobs: # 3 hours max_age_seconds: 10800 ami-sweeper: + # disable in forks + if: github.repository == 'awslabs/amazon-eks-ami' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3