Skip to content

Commit

Permalink
Run release workflow only when CI passes on release branches (#817)
Browse files Browse the repository at this point in the history
* Run release workflow only when CI passes on release branches

Signed-off-by: NikitaSkrynnik <[email protected]>

* cleanup

Signed-off-by: NikitaSkrynnik <[email protected]>

---------

Signed-off-by: NikitaSkrynnik <[email protected]>
  • Loading branch information
NikitaSkrynnik authored Apr 11, 2024
1 parent 903fd93 commit 4351c7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- completed
workflows:
- "ci"
branches:
- release/*
jobs:
print-debug-info:
name: Print debug info for Release workflow
Expand All @@ -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:
Expand Down

0 comments on commit 4351c7c

Please sign in to comment.