From 77630781d7ee264624fe4141a73d12d89b4bcec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Tue, 23 Jun 2026 07:15:13 +0200 Subject: [PATCH] fix: failing `make bundle` ci on forks. (#4019) --- .github/workflows/bundle.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bundle.yml b/.github/workflows/bundle.yml index 6409d1ff9..a67045f7f 100644 --- a/.github/workflows/bundle.yml +++ b/.github/workflows/bundle.yml @@ -10,15 +10,16 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.head_ref }} + ref: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.head_ref || github.event.pull_request.head.sha }} - uses: lnbits/lnbits/.github/actions/prepare@dev with: python-version: "3.10" node-version: "24.x" npm: true - - run: make bundle - - name: Commit and push bundle changes + - name: Build and commit bundle (same-repo PR) + if: github.event.pull_request.head.repo.full_name == github.repository run: | + make bundle git config user.name "alan" git config user.email "alan@lnbits.com" git add lnbits/static @@ -27,3 +28,6 @@ jobs: fi git commit -m "chore: make bundle [skip ci]" git push + - name: Check bundle is up-to-date (fork PR) + if: github.event.pull_request.head.repo.full_name != github.repository + run: make checkbundle