Skip to content

Commit

Permalink
ci: run the release when the test is skipped [skip test]
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Sep 1, 2023
1 parent 5e87b77 commit ebe8a86
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:

Test:
name: Test-${{ matrix.os }}
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip test]') }}
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
needs: [Build]
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -191,6 +191,7 @@ jobs:
# uses: mxschmitt/action-tmate@v3

- name: Tests
if: ${{ !contains(github.event.head_commit.message, '[skip test]') }}
run: |
pnpm run test
env:
Expand All @@ -214,7 +215,7 @@ jobs:
Docker:
name: Test-${{ matrix.container }}
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip test]') }}
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
needs: [Build]
runs-on: ${{ matrix.os }}
strategy:
Expand Down

0 comments on commit ebe8a86

Please sign in to comment.