From 80da133a1a8862f66b03bec815dc4ebaf76123ee Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sun, 6 Jul 2025 18:42:20 +1000 Subject: [PATCH 1/2] Raise sponsors PRs as a draft See https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#workarounds-to-trigger-further-workflow-runs --- .github/workflows/sponsors.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/sponsors.yml b/.github/workflows/sponsors.yml index 1737d6ce1..ace333114 100644 --- a/.github/workflows/sponsors.yml +++ b/.github/workflows/sponsors.yml @@ -26,3 +26,4 @@ jobs: author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" labels: "ignore-for-release" delete-branch: true + draft: always-true From 48c3f347cea01a8ed2d23d0fa6170a33a53b2182 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sun, 6 Jul 2025 10:51:46 +0200 Subject: [PATCH 2/2] 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