ci: separate CI (PR + main) from build (main only after merge)

This commit is contained in:
2026-09-06 06:31:23 -07:00
parent 6e0cf38851
commit bd2a5839cc
+4
View File
@@ -4,6 +4,9 @@ on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
@@ -23,6 +26,7 @@ jobs:
name: Build & Push Image
runs-on: rust
needs: test
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v4