From 9b0c66c5c54ed0e5c195cb2902a664069054e8e5 Mon Sep 17 00:00:00 2001 From: NikitaSkrynnik Date: Mon, 1 Apr 2024 16:10:05 +0700 Subject: [PATCH] run release workflow only when CI is completed for release branches Signed-off-by: NikitaSkrynnik --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 72f9cd6..e595978 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,11 +7,13 @@ on: - completed workflows: - "ci" + branches: + - release/* jobs: get-tag: name: Get tag runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' && contains(github.event.workflow_run.head_branch, 'release/') }} + if: ${{ github.event.workflow_run.conclusion == 'success' }} outputs: tag: ${{ steps.get-tag-step.outputs.tag }} steps: