Skip to content

Commit

Permalink
ci: test conditional build with [ci build]
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrasser committed Sep 10, 2024
1 parent f99de1f commit 10ce293
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 10ce293

Please sign in to comment.