From 27185f3ddd5f3f3d37f0a74bc0a1a3342e87affa Mon Sep 17 00:00:00 2001 From: Kirill Ivanov Date: Wed, 21 May 2025 07:25:55 +0300 Subject: [PATCH] refactor(github): version workflow trigger --- .github/workflows/version.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/version.yaml b/.github/workflows/version.yaml index 2346b31..0f4fa91 100644 --- a/.github/workflows/version.yaml +++ b/.github/workflows/version.yaml @@ -6,12 +6,15 @@ on: - master paths-ignore: - ".github/**" - - "version.properties" workflow_dispatch: jobs: + validate-merge-commit: + uses: rees46/workflow/.github/workflows/reusable-validate-commit.yaml@master + bump-version: - if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && !startsWith(github.event.pull_request.head.ref, 'release/')) + needs: validate-merge-commit + if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && needs.validate-merge-commit.outputs.is_valid == 'true') uses: rees46/workflow/.github/workflows/reusable-multiplatform-version-bump.yaml@master permissions: write-all secrets: