CI: skip full CI runs on push events

Full CI runs for proposed changes always occur in the PR where the
review is done and patch approved.  Once merged the full CI is run
again using the merged commit.  This is somewhat overkill.  In the
interest of reducing the CI load only run the zloop and checkstyle
workflows which are enough to verify the build on the master branch.
Push events to forks will continue to trigger a full CI run.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #18571
This commit is contained in:
Brian Behlendorf
2026-05-22 12:01:22 -07:00
committed by GitHub
parent 971791762a
commit 1916c2c552
4 changed files with 12 additions and 2 deletions
+1
View File
@@ -11,6 +11,7 @@ concurrency:
jobs:
analyze:
name: Analyze
if: github.event_name == 'pull_request' || github.repository != 'openzfs/zfs'
runs-on: ubuntu-22.04
permissions:
actions: read
+1
View File
@@ -10,6 +10,7 @@ concurrency:
jobs:
smatch:
if: github.event_name == 'pull_request' || github.repository != 'openzfs/zfs'
runs-on: ubuntu-24.04
steps:
- name: Checkout smatch
+1
View File
@@ -14,6 +14,7 @@ on:
jobs:
zfs-arm:
name: ZFS ARM build
if: github.event_name == 'pull_request' || github.repository != 'openzfs/zfs'
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
+9 -2
View File
@@ -23,6 +23,7 @@ concurrency:
jobs:
test-config:
name: Setup
if: github.event_name == 'pull_request' || github.repository != 'openzfs/zfs'
runs-on: ubuntu-24.04
outputs:
test_os: ${{ steps.os.outputs.os }}
@@ -94,7 +95,10 @@ jobs:
qemu-vm:
name: qemu-x86
needs: [ test-config ]
if: needs.test-config.outputs.ci_type != 'docs'
if: >-
(github.event_name == 'pull_request' ||
github.repository != 'openzfs/zfs') &&
needs.test-config.outputs.ci_type != 'docs'
strategy:
fail-fast: false
matrix:
@@ -157,7 +161,10 @@ jobs:
run: .github/workflows/scripts/qemu-8-summary.sh '${{ steps.artifact-upload.outputs.artifact-url }}'
cleanup:
if: always()
if: >-
(github.event_name == 'pull_request' ||
github.repository != 'openzfs/zfs') &&
always()
name: Cleanup
runs-on: ubuntu-latest
needs: [ qemu-vm ]