diff --git a/.github/workflows/semantic-release.yml b/.github/workflows/semantic-release.yml index 02e75e8..ef3026e 100644 --- a/.github/workflows/semantic-release.yml +++ b/.github/workflows/semantic-release.yml @@ -13,6 +13,7 @@ jobs: target_workflow: ./.github/workflows/python-tests.yml release: + if: ${{ ! startsWith(github.event.head_commit.message, '[0-9]+.[0-9]+.[0-9]+') }} needs: quality runs-on: ubuntu-latest concurrency: release @@ -21,14 +22,6 @@ jobs: contents: write steps: - - name: Check triggered by new release - run: | - if [[ ${{ github.event.head_commit.message }} =~ ^\d+\.\d+\.\d+ ]]; then - echo "Workflow triggered by new realease" - else - echo "Commit message does not match pattern" - fi - - name: Checkout repository uses: actions/checkout@v4 with: @@ -45,7 +38,6 @@ jobs: pip install -r requirements.txt - name: Python Semantic Release - if: ${{ ! startsWith(github.event.head_commit.message, '[0-9]+.[0-9]+.[0-9]+') }} uses: python-semantic-release/python-semantic-release@master with: github_token: ${{ secrets.GITHUB_TOKEN }}