From e9eb09ed9b7172b7f2fe70c9d2e8e5959d4bb82e Mon Sep 17 00:00:00 2001 From: "Peter Fichtner (pfichtner)" Date: Thu, 5 Feb 2026 13:04:54 +0100 Subject: [PATCH] Fix GitHub Actions condition: check repository owner instead of (non-working) repo name --- .github/workflows/pr-validation.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index cc00c12e..e4ce66de 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -5,8 +5,11 @@ on: jobs: task-check: + # github.event.repository.name only contains 'GildedRose-Refactoring-Kata' (no owner)! + # we could check owner and name if: github.repository == 'emilybache/GildedRose-Refactoring-Kata' + # but checking owner is enough/better/more stable # Only run from the base repository - if: github.event.repository.name == 'emilybache/GildedRose-Refactoring-Kata' + if: github.repository_owner == 'emilybache' runs-on: ubuntu-latest permissions: issues: write