From e70141a770e6b3fea005b62157543bb6907bf16b Mon Sep 17 00:00:00 2001 From: chgl Date: Thu, 24 Oct 2024 13:38:27 +0200 Subject: [PATCH] ci: release only on master or workflow_dispatch (#135) --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e8f105c3..1501f091 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,11 +6,13 @@ on: - master - beta release: - types: [created] + types: + - created pull_request: branches: - master - beta + workflow_dispatch: {} permissions: read-all @@ -171,6 +173,7 @@ jobs: release: uses: miracum/.github/.github/workflows/standard-release.yaml@26fdadd65c14ba321e4c3a167f86df9b41b3e813 # v1.12.6 + if: ${{ github.ref_name == 'master' || github.event_name == 'workflow_dispatch' }} needs: - lint - build