From 8e156f57dd9c63bf82706833671a2aef8d6d0be5 Mon Sep 17 00:00:00 2001 From: Ruoyu Zhong Date: Mon, 14 Oct 2024 22:51:02 +0800 Subject: [PATCH] workflows/remove-disabled-packages: only run job in official repo Otherwise forks keep producing errors like [^1] every day. [^1]: https://github.com/ZhongRuoyu/homebrew-core/actions/runs/11318833482 --- .github/workflows/remove-disabled-packages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/remove-disabled-packages.yml b/.github/workflows/remove-disabled-packages.yml index 0a4b8d096925..4ffd568dcc08 100644 --- a/.github/workflows/remove-disabled-packages.yml +++ b/.github/workflows/remove-disabled-packages.yml @@ -92,7 +92,7 @@ jobs: permissions: issues: write # for Homebrew/actions/create-or-update-issue needs: remove-disabled-packages - if: always() + if: always() && github.repository_owner == 'Homebrew' runs-on: ubuntu-latest steps: - name: Create issue on failure