File 0927-gh-Don-t-run-scheduled-tests-on-forked-repositories.patch of Package erlang
From 90912ebf6fcfc40500fc8761ff31b56408ba54f1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Backstr=C3=B6m?= <lukas@erlang.org>
Date: Fri, 11 Apr 2025 15:30:22 +0200
Subject: [PATCH 2/8] gh: Don't run scheduled tests on forked repositories
---
.github/workflows/main.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index 61910b8e09..23e30c40f2 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -57,6 +57,7 @@ jobs:
pack:
name: Build Erlang/OTP (64-bit)
runs-on: ubuntu-latest
+ if: github.repository == 'erlang/otp' || github.event_name != 'scheduled'
outputs:
BASE_BUILD: ${{ steps.base-build.outputs.BASE_BUILD }}
changes: ${{ steps.changes.outputs.changes }}
--
2.43.0