Skip to content

Commit

Permalink
make ci runs conditional --no-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
notarious2 committed Mar 3, 2024
1 parent f73c4ae commit 13794ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 13794ac

Please sign in to comment.