From ce9176bbc74b6adfaaeedac326ada115c4c329e7 Mon Sep 17 00:00:00 2001 From: Brian Schubert Date: Wed, 13 Sep 2023 10:06:05 -0400 Subject: [PATCH] Fix workflow ternary operator syntax --- .github/workflows/release.yaml | 4 ++-- .github/workflows/test.yaml | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 08e466a..72c2a12 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -57,8 +57,8 @@ jobs: # In the job that builds the source distribution, call 'build' with no arguments so that it builds the wheel # from the sdist. In all other jobs, the wheel is built directly from the source directory. # This way, we confirm that wheels can be successfully built from the sdist. - - name: Build wheel ${{ matrix.sdist && "and sdist" }} - run: python -I -m build ${{ !matrix.sdist && "--wheel" }} + - name: Build wheel${{ matrix.sdist && ' and sdist' || '' }} + run: python -I -m build ${{ !matrix.sdist && '--wheel' || '' }} env: SIXS_ARCHIVE_DIR: 6s-archives diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index cabd2c9..8fe06cd 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,6 +1,9 @@ name: Tests -on: [ push ] +on: + push: + branches: + - '!feat/*' jobs: download_archives: