diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index 4b71cbf617..ac6154ab9f 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -1,9 +1,13 @@ name: clang-format -on: [push, pull_request] +on: + push: + pull_request: + types: [opened, reopened, synchronize, ready_for_review] jobs: check: + if: ${{ github.event_name == 'push' || github.event.pull_request.draft != true || contains(github.event.pull_request.labels.*.name, 'DraftRunCI') }} runs-on: ubuntu-24.04 env: CLANG_VERSION: 18 diff --git a/.github/workflows/levelization.yml b/.github/workflows/levelization.yml index 3722a78e5e..979049d630 100644 --- a/.github/workflows/levelization.yml +++ b/.github/workflows/levelization.yml @@ -1,9 +1,13 @@ name: levelization -on: [push, pull_request] +on: + push: + pull_request: + types: [opened, reopened, synchronize, ready_for_review] jobs: check: + if: ${{ github.event_name == 'push' || github.event.pull_request.draft != true || contains(github.event.pull_request.labels.*.name, 'DraftRunCI') }} runs-on: ubuntu-latest env: CLANG_VERSION: 10 diff --git a/.github/workflows/libxrpl.yml b/.github/workflows/libxrpl.yml index 92deff7810..36ccad5c96 100644 --- a/.github/workflows/libxrpl.yml +++ b/.github/workflows/libxrpl.yml @@ -8,12 +8,14 @@ on: paths: - 'src/libxrpl/protocol/BuildInfo.cpp' - '.github/workflows/libxrpl.yml' + types: [opened, reopened, synchronize, ready_for_review] concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: publish: + if: ${{ github.event_name == 'push' || github.event.pull_request.draft != true || contains(github.event.pull_request.labels.*.name, 'DraftRunCI') }} name: Publish libXRPL outputs: outcome: ${{ steps.upload.outputs.outcome }} diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 955441da0a..905df7e83d 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -1,6 +1,7 @@ name: macos on: pull_request: + types: [opened, reopened, synchronize, ready_for_review] push: # If the branches list is ever changed, be sure to change it on all # build/test jobs (nix, macos, windows, instrumentation) @@ -18,6 +19,7 @@ concurrency: jobs: test: + if: ${{ github.event_name == 'push' || github.event.pull_request.draft != true || contains(github.event.pull_request.labels.*.name, 'DraftRunCI') }} strategy: matrix: platform: diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index abae2ee84a..8a8ba94e2d 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -1,6 +1,7 @@ name: nix on: pull_request: + types: [opened, reopened, synchronize, ready_for_review] push: # If the branches list is ever changed, be sure to change it on all # build/test jobs (nix, macos, windows) @@ -39,6 +40,7 @@ concurrency: jobs: dependencies: + if: ${{ github.event_name == 'push' || github.event.pull_request.draft != true || contains(github.event.pull_request.labels.*.name, 'DraftRunCI') }} strategy: fail-fast: false matrix: @@ -358,6 +360,7 @@ jobs: # later instrumentation-build: + if: ${{ github.event_name == 'push' || github.event.pull_request.draft != true || contains(github.event.pull_request.labels.*.name, 'DraftRunCI') }} env: CLANG_RELEASE: 16 strategy: diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 7641db0d10..1d90c2ef58 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -2,6 +2,7 @@ name: windows on: pull_request: + types: [opened, reopened, synchronize, ready_for_review] push: # If the branches list is ever changed, be sure to change it on all # build/test jobs (nix, macos, windows, instrumentation) @@ -21,6 +22,7 @@ concurrency: jobs: test: + if: ${{ github.event_name == 'push' || github.event.pull_request.draft != true || contains(github.event.pull_request.labels.*.name, 'DraftRunCI') }} strategy: fail-fast: false matrix: