From ee1a36945c83423c00c7e0f3fc3607d803876161 Mon Sep 17 00:00:00 2001 From: Santiago Fraire Willemoes Date: Thu, 21 Nov 2024 16:02:20 +0100 Subject: [PATCH] ci: add if conditions to pipelines --- .github/workflows/bench-release.yml | 7 ++----- .github/workflows/bumpversion.yml | 4 +++- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/bench-release.yml b/.github/workflows/bench-release.yml index aea0510..1d15de8 100644 --- a/.github/workflows/bench-release.yml +++ b/.github/workflows/bench-release.yml @@ -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 @@ -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 diff --git a/.github/workflows/bumpversion.yml b/.github/workflows/bumpversion.yml index 262de20..b9c5c30 100644 --- a/.github/workflows/bumpversion.yml +++ b/.github/workflows/bumpversion.yml @@ -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: