Skip to content

Commit

Permalink
ci(ci): prevent jobs if the trigger is release commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrs committed Jan 3, 2024
1 parent 51390e6 commit 018aed2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build_and_test:
name: Test and Build - ${{ matrix.version }}
runs-on: ubuntu-latest
if: ${{ ! startsWith(github.event.head_commit.message, 'chore(release):') }}
if: ${{ ! startsWith(github.event.commits[0].message, 'chore(release):') }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-latest
if: ${{ ! startsWith(github.event.head_commit.message, 'chore(release):') }}
if: ${{ ! startsWith(github.event.commits[0].message, 'chore(release):') }}
steps:
- uses: actions/checkout@v4
- name: Install toolchain and components
Expand Down

0 comments on commit 018aed2

Please sign in to comment.