From 4351c7c9384416a7cf415ba7ffc89b9f6d001076 Mon Sep 17 00:00:00 2001 From: Nikita Skrynnik <93182827+NikitaSkrynnik@users.noreply.github.com> Date: Fri, 12 Apr 2024 00:04:25 +0700 Subject: [PATCH] Run release workflow only when CI passes on release branches (#817) * Run release workflow only when CI passes on release branches Signed-off-by: NikitaSkrynnik * cleanup Signed-off-by: NikitaSkrynnik --------- Signed-off-by: NikitaSkrynnik --- .github/workflows/release.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 41bab84a..6e2cbdf1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -6,6 +6,8 @@ on: - completed workflows: - "ci" + branches: + - release/* jobs: print-debug-info: name: Print debug info for Release workflow @@ -16,7 +18,7 @@ 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: