Skip to content

Commit

Permalink
ci: add if conditions to pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
woile committed Nov 21, 2024
1 parent b371aa1 commit ee1a369
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/bench-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ on:

jobs:
bench_release:
if: ${{ startsWith(github.event.head_commit.message, 'bump:') }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- name: Check out
uses: actions/checkout@v4
Expand All @@ -20,9 +18,8 @@ jobs:
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: '3.13'
architecture: x64

- name: Set Cache
uses: actions/cache@v4
id: cache # name for referring later
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/bumpversion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ on:

jobs:
bump-version:
if: ${{ !startsWith(github.event.head_commit.message, 'bump:') || !startsWith(github.event.head_commit.message, 'bench:') }}
if: |
!startsWith(github.event.head_commit.message, 'bump:') ||
!startsWith(github.event.head_commit.message, 'bench:')
runs-on: ubuntu-latest
name: "Bump version and create changelog with commitizen"
steps:
Expand Down

0 comments on commit ee1a369

Please sign in to comment.