From c164cb7aa488482648d7be2d25d5d705a01ba364 Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Sat, 2 Sep 2023 00:16:09 -0700 Subject: [PATCH] [DEV] Fix release conditional --- .github/workflows/release.yaml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 719ea6be..8d79964b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -171,9 +171,7 @@ jobs: ls -lh /opt/builds - name: Create Release - if: | - ${{ github.ref == 'refs/heads/master' }} - && !contains(github.event.head_commit.message, [DEV]) + if: ${{ github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, '[DEV]') }} id: create_release uses: softprops/action-gh-release@v1 with: @@ -209,9 +207,7 @@ jobs: python3 -m build - name: Publish distribution 📦 to PyPI - if: | - ${{ github.ref == 'refs/heads/master' }} - && !contains(github.event.head_commit.message, [DEV]) + if: ${{ github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, '[DEV]') }} uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.PYPI_API_TOKEN }}