Skip to content

Commit

Permalink
chore: use head commit for skip tests on docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed May 7, 2024
1 parent fedf871 commit 7f4c863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }}
runs-on: ${{ matrix.runs-on }}
# don't run tests if any commits in push contain "docs:" or "style:"
if: "!contains(github.push.commits.message, 'docs:')" #&& !contains(github.push.commits.message, 'style:') }}
if: "!contains(github.event.head_commit.message, 'docs:')" #&& !contains(github.push.commits.message, 'style:') }}
needs: [pre-commit]
strategy:
# Otherwise, the workflow would stop if a single job fails. We want to
Expand Down

0 comments on commit 7f4c863

Please sign in to comment.