Skip to content

Commit 2b37847

Browse files
committed
ci: run on pull_request and push; upload web-dist artifact to PR; guard docker job to workflow_call only
1 parent 8cc5564 commit 2b37847

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: CI
22

3-
# Keep this as a callable workflow to minimize disruption; callers can trigger it.
3+
# Run on PRs to show artifacts, and keep callable for reuse.
44
on:
5+
pull_request:
6+
push:
7+
branches: [ tauri ]
58
workflow_call:
69
inputs:
710
run_docker_build:
@@ -48,7 +51,8 @@ jobs:
4851
name: Docker build (optional)
4952
runs-on: ubuntu-latest
5053
needs: node-ci
51-
if: ${{ inputs.run_docker_build == true }}
54+
# Only run when called as a reusable workflow AND the caller enabled it
55+
if: ${{ github.event_name == 'workflow_call' && inputs.run_docker_build == true }}
5256
steps:
5357
- name: Checkout
5458
uses: actions/checkout@v5

0 commit comments

Comments
 (0)