From d00b8308de8d993a63d1c4dc6e32c53d2cc63f44 Mon Sep 17 00:00:00 2001 From: Animesh Sahu Date: Sun, 29 May 2022 09:55:39 +0530 Subject: [PATCH] .github/workflows: disable scheduled cron jobs on forks --- .github/workflows/cycles.yml | 1 + .github/workflows/stale.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/cycles.yml b/.github/workflows/cycles.yml index 0bd148e77f0a..67045b2ee35f 100644 --- a/.github/workflows/cycles.yml +++ b/.github/workflows/cycles.yml @@ -7,6 +7,7 @@ on: jobs: cycles: runs-on: ubuntu-latest + if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository_owner == 'void-linux') container: image: 'ghcr.io/void-linux/xbps-src-masterdir:20220527RC01-x86_64-musl' steps: diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 160897fedef1..d5f8edd83d88 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -9,6 +9,7 @@ on: jobs: stale: runs-on: ubuntu-latest + if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository_owner == 'void-linux') steps: - uses: actions/stale@v4 with: