Skip to content

Commit 447f917

Browse files
claire-villard-sonarsourcehenryju
authored andcommitted
SCANCLI-206 Fix releasability.yml
1 parent 5daa500 commit 447f917

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/releasability.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
# yamllint disable rule:line-length
22
---
33
name: Releasability status
4-
'on':
5-
check_suite:
6-
types:
7-
- completed
4+
on:
5+
workflow_run:
6+
workflows: [ "Build" ] # Name must match the name of the build workflow
7+
types: [ completed ]
8+
branches:
9+
- master
10+
- branch-*
11+
- dogfood-*
12+
813
jobs:
914
update_releasability_status:
1015
runs-on: github-ubuntu-latest-s
@@ -13,10 +18,7 @@ jobs:
1318
id-token: write
1419
statuses: write
1520
contents: read
16-
if: >-
17-
(contains(fromJSON('["main", "master"]'), github.event.check_suite.head_branch) || startsWith(github.event.check_suite.head_branch, 'dogfood-') || startsWith(github.event.check_suite.head_branch, 'branch-'))
18-
&& github.event.check_suite.conclusion == 'success'
19-
&& github.event.check_suite.app.slug == 'github-actions'
21+
if: github.event.workflow_run.conclusion == 'success'
2022
steps:
2123
- uses: SonarSource/gh-action_releasability/releasability-status@v3
2224
with:

0 commit comments

Comments
 (0)