From 48c3f347cea01a8ed2d23d0fa6170a33a53b2182 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sun, 6 Jul 2025 10:51:46 +0200 Subject: [PATCH] Move `if` to job level so that the entire thing doesn't run in forks --- .github/workflows/sponsors.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sponsors.yml b/.github/workflows/sponsors.yml index ace333114..698eb6d99 100644 --- a/.github/workflows/sponsors.yml +++ b/.github/workflows/sponsors.yml @@ -7,6 +7,7 @@ on: jobs: deploy: runs-on: ubuntu-latest + if: ${{ github.repository == 'jesseduffield/lazygit' }} steps: - name: Checkout 🛎️ uses: actions/checkout@v4 @@ -16,7 +17,6 @@ jobs: with: token: ${{ secrets.SPONSORS_TOKEN }} file: "README.md" - if: ${{ github.repository == 'jesseduffield/lazygit' }} - name: Create Pull Request 🚀 uses: peter-evans/create-pull-request@v6