From 5a5d95ad1a7d6b9b4054934d9ad4e0bec0b083ac Mon Sep 17 00:00:00 2001 From: nolancon Date: Fri, 24 May 2024 13:48:39 +0000 Subject: [PATCH] update publish checks --- .github/workflows/publish.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 89745a8a..e1f6ec5d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,9 +4,6 @@ on: push: branches: - release-* - pull_request: - types: [closed] - branches: - main workflow_dispatch: {} @@ -32,7 +29,7 @@ jobs: if: > github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release-')) || - (github.event_name == 'pull_request' && github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'candidate-')) + (github.event_name == 'push' && github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, 'Set release candidate version')) runs-on: ubuntu-22.04