Skip to content

Commit 249cecc

Browse files
Merge pull request #249 from NikitaSkrynnik/release-workflow
Run release workflow only when CI passes on release branches
2 parents 42dfb68 + f69e83a commit 249cecc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
- completed
77
workflows:
88
- "ci"
9+
branches:
10+
- release/*
911
jobs:
1012
print-debug-info:
1113
name: Print debug info for Release workflow
@@ -15,7 +17,7 @@ jobs:
1517

1618
create-release:
1719
name: Create release
18-
if: ${{ github.event.workflow_run.conclusion == 'success' && contains(github.event.workflow_run.head_branch, 'release/') }}
20+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1921
uses: networkservicemesh/.github/.github/workflows/release.yaml@main
2022
secrets:
2123
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)