From 10ce29351af1752885898a8f668fe658893e2c54 Mon Sep 17 00:00:00 2001 From: Nick Frasser <1693461+nfrasser@users.noreply.github.com> Date: Tue, 10 Sep 2024 12:05:53 -0400 Subject: [PATCH] ci: test conditional build with [ci build] --- .github/workflows/python-package.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index a9148005..7178fe96 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -89,7 +89,7 @@ jobs: build: needs: [test] - if: "startsWith(github.ref, 'refs/tags/')" + if: ${{ startsWith(github.ref, 'refs/tags/') or contains(github.event.head_commit.message, '[ci build]') }} runs-on: ${{ matrix.os }} strategy: fail-fast: true @@ -121,7 +121,7 @@ jobs: release: name: Release runs-on: ubuntu-latest - if: "startsWith(github.ref, 'refs/tags/')" + if: ${{ startsWith(github.ref, 'refs/tags/') }} needs: [build] steps: - uses: actions/download-artifact@v4