Skip to content

Commit fa98967

Browse files
SONARJAVA-5568 Create continuous releasability check (#5161)
1 parent 9d50cb6 commit fa98967

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Releasability Check
2+
3+
# Update releasability check. This workflow run continuously,
4+
# in contrast to the other releasability, which needs to be triggered manually.
5+
6+
'on':
7+
check_suite:
8+
types:
9+
- completed
10+
11+
jobs:
12+
update_releasability_status:
13+
runs-on: ubuntu-latest-large
14+
name: Releasability Check
15+
permissions:
16+
id-token: write
17+
statuses: write
18+
contents: read
19+
if: >-
20+
(contains(fromJSON('["main", "master"]'),
21+
github.event.check_suite.head_branch) ||
22+
startsWith(github.event.check_suite.head_branch, 'dogfood-') ||
23+
startsWith(github.event.check_suite.head_branch, 'branch-')) &&
24+
github.event.check_suite.conclusion == 'success' &&
25+
github.event.check_suite.app.slug == 'cirrus-ci'
26+
steps:
27+
- uses: >-
28+
SonarSource/gh-action_releasability/releasability-status@v2
29+
with:
30+
optional_checks: "Jira"
31+
env:
32+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'

0 commit comments

Comments
 (0)