From f69e83aa144742625884bd204993f8b26e2a12eb Mon Sep 17 00:00:00 2001 From: NikitaSkrynnik Date: Wed, 10 Apr 2024 15:08:44 +0700 Subject: [PATCH] Run release workflow only when CI passes on release branches 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 aa978cc..30e6777 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 @@ -15,7 +17,7 @@ jobs: create-release: name: Create release - if: ${{ github.event.workflow_run.conclusion == 'success' && contains(github.event.workflow_run.head_branch, 'release/') }} + if: ${{ github.event.workflow_run.conclusion == 'success' }} uses: networkservicemesh/.github/.github/workflows/release.yaml@main secrets: token: ${{ secrets.GITHUB_TOKEN }}