Skip to content

Commit bbd50f2

Browse files
SCANJLIB-299 Fix releasability.yml (#273)
1 parent 703bd92 commit bbd50f2

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/releasability.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
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+
812
jobs:
913
update_releasability_status:
1014
runs-on: github-ubuntu-latest-s
@@ -13,10 +17,7 @@ jobs:
1317
id-token: write
1418
statuses: write
1519
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'
20+
if: github.event.workflow_run.conclusion == 'success'
2021
steps:
2122
- uses: SonarSource/gh-action_releasability/releasability-status@v3
2223
with:

0 commit comments

Comments
 (0)