Skip to content

Commit

Permalink
GitHub Actions now supports skipping tests
Browse files Browse the repository at this point in the history
https://github.blog/changelog/2021-02-08-github-actions-skip-pull-request-and-push-workflows-with-skip-ci/

> GitHub Actions now supports skipping push and pull_request workflows by
> looking for some common keywords in your commit message.
>
> If any commit message in your push or the HEAD commit of your PR
> contains the strings [skip ci], [ci skip], [no ci], [skip actions], or
> [actions skip] workflows triggered on the push or pull_request events
> will be skipped.
  • Loading branch information
dentarg committed Feb 10, 2021
1 parent 56512ba commit 26776c8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/check_changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ jobs:
if: |
!( contains(github.event.pull_request.title, '[changelog skip]')
|| contains(github.event.pull_request.title, '[skip changelog]')
|| contains(github.event.pull_request.title, '[ci skip]')
|| contains(github.event.pull_request.title, '[skip ci]'))
steps:
- uses: actions/checkout@v1
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/mri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ jobs:
TESTOPTS: -v

runs-on: ${{ matrix.os }}
if: |
!( contains(github.event.pull_request.title, '[ci skip]')
|| contains(github.event.pull_request.title, '[skip ci]')
|| contains(github.event.head_commit.message, '[ci skip]')
|| contains(github.event.head_commit.message, '[skip ci]'))
strategy:
fail-fast: false
matrix:
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/non_mri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ jobs:
TESTOPTS: -v

runs-on: ${{ matrix.os }}
if: |
!( contains(github.event.pull_request.title, '[ci skip]')
|| contains(github.event.pull_request.title, '[skip ci]')
|| contains(github.event.head_commit.message, '[ci skip]')
|| contains(github.event.head_commit.message, '[skip ci]'))
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit 26776c8

Please sign in to comment.