Skip to content

Commit 33eb191

Browse files
SCANPY-242 Improved releasability workflow (#310)
1 parent 4a27444 commit 33eb191

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed
Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
name: Releasability status
2-
"on":
3-
check_suite:
2+
3+
on:
4+
workflow_run:
5+
workflows:
6+
- Build
47
types:
58
- completed
9+
branches:
10+
- master
11+
- branch-*
12+
- dogfood-*
613
workflow_dispatch:
714

815
jobs:
@@ -15,16 +22,11 @@ jobs:
1522
contents: read
1623
if: >-
1724
github.event_name == 'workflow_dispatch' ||
18-
((contains(fromJSON('["main", "master"]'),
19-
github.event.check_suite.head_branch) ||
20-
startsWith(github.event.check_suite.head_branch, 'branch-')) &&
21-
github.event.check_suite.conclusion == 'success' &&
22-
github.event.check_suite.app.slug == 'cirrus-ci')
25+
github.event.workflow_run.conclusion == 'success'
2326
steps:
24-
- uses: >-
25-
SonarSource/gh-action_releasability/releasability-status@v2
27+
- uses: SonarSource/gh-action_releasability/releasability-status@v3
2628
with:
2729
# CheckManifestValues is not supported for python projects (see PREQ-465)
2830
optional_checks: "Jira,CheckManifestValues"
2931
env:
30-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)