Skip to content

Commit

Permalink
Merge pull request #181 from tkrs/prevent-ci
Browse files Browse the repository at this point in the history
ci(ci): prevent jobs if the trigger is release commit
  • Loading branch information
tkrs committed Jan 3, 2024
2 parents 51390e6 + 018aed2 commit 91deeca
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 91deeca

Please sign in to comment.