File 0381-gh-Fix-PRs-target-to-only-run-in-upstream-repo.patch of Package erlang
From 538dbc2838644dabb815ce4b25e6eae973eff0c5 Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Tue, 21 Jun 2022 17:08:29 +0200
Subject: [PATCH] gh: Fix PRs target to only run in upstream repo
---
.github/workflows/add-to-project.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.github/workflows/add-to-project.yaml b/.github/workflows/add-to-project.yaml
index fdb8e60300..3c67d85add 100644
--- a/.github/workflows/add-to-project.yaml
+++ b/.github/workflows/add-to-project.yaml
@@ -12,6 +12,7 @@ jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
+ if: github.repository == 'erlang/otp'
steps:
- name: Generate token
id: generate_token
--
2.35.3