Skip to content

Commit

Permalink
Run release workflow only when CI passes on release branches
Browse files Browse the repository at this point in the history
Signed-off-by: NikitaSkrynnik <nikita.skrynnik@xored.com>
  • Loading branch information
NikitaSkrynnik committed Apr 10, 2024
1 parent 4bd089d commit f69e83a
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 @@ -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 }}

0 comments on commit f69e83a

Please sign in to comment.