34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
name: bundle
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
bundle:
|
|
permissions:
|
|
contents: write
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
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
|
|
- 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
|
|
if git diff --cached --quiet; then
|
|
exit 0
|
|
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
|