diff --git a/.github/workflows/package-ubuntu.yaml b/.github/workflows/package-ubuntu.yaml index 6a8bc2f4..ab8e249d 100644 --- a/.github/workflows/package-ubuntu.yaml +++ b/.github/workflows/package-ubuntu.yaml @@ -57,7 +57,7 @@ jobs: permissions: contents: read - if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }} + if: ${{ github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, '[DEV]') }} steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/package.yaml b/.github/workflows/package.yaml index 835b75f2..9b03b9a3 100644 --- a/.github/workflows/package.yaml +++ b/.github/workflows/package.yaml @@ -148,7 +148,7 @@ jobs: packages: write contents: read - if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }} + if: ${{ github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, '[DEV]') }} steps: - uses: actions/checkout@v3 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 }}