From 13794ac356fad25409ec6aa69edd8a569cc1e0b7 Mon Sep 17 00:00:00 2001 From: Bekzod Mirahmedov Date: Sun, 3 Mar 2024 20:26:27 +0500 Subject: [PATCH] make ci runs conditional --no-ci --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f1d4ca..9bc4cd6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,7 @@ on: [push, pull_request] jobs: lint: + if: "!contains(github.event.head_commit.message, '--no-ci')" name: Run Linter runs-on: ubuntu-latest steps: @@ -21,6 +22,7 @@ jobs: - name: Run Ruff run: ruff check --output-format=github . test: + if: "!contains(github.event.head_commit.message, '--no-ci')" name: Run Tests needs: lint runs-on: ubuntu-latest