ci: run the release when the test is skipped [skip test]

This commit is contained in:
Amin Yahyaabadi 2023-09-01 14:48:28 -07:00
parent 5e87b7794a
commit ebe8a86b02
1 changed files with 3 additions and 2 deletions

View File

@ -135,7 +135,7 @@ jobs:
Test: Test:
name: Test-${{ matrix.os }} 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] needs: [Build]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
@ -191,6 +191,7 @@ jobs:
# uses: mxschmitt/action-tmate@v3 # uses: mxschmitt/action-tmate@v3
- name: Tests - name: Tests
if: ${{ !contains(github.event.head_commit.message, '[skip test]') }}
run: | run: |
pnpm run test pnpm run test
env: env:
@ -214,7 +215,7 @@ jobs:
Docker: Docker:
name: Test-${{ matrix.container }} 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] needs: [Build]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy: