Skip to content

Commit 4e122cb

Browse files
authored
SONARPY-1977 Change CI Releasability checks to ignore failures and allow manual triggering (#1847)
1 parent dd9e2e5 commit 4e122cb

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.cirrus.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,6 @@ promote_task:
221221
#promotion cloud function
222222
ARTIFACTORY_PROMOTE_ACCESS_TOKEN: VAULT[development/artifactory/token/${CIRRUS_REPO_OWNER}-${CIRRUS_REPO_NAME}-promoter access_token]
223223
GITHUB_TOKEN: VAULT[development/github/token/${CIRRUS_REPO_OWNER}-${CIRRUS_REPO_NAME}-promotion token]
224-
#artifacts that will have downloadable links
225-
ARTIFACTS: org.sonarsource.python:sonar-python-plugin:jar
226224
maven_cache:
227225
folder: ${CIRRUS_WORKING_DIR}/.m2/repository
228226
script: cirrus_promote_maven

.github/workflows/releasability.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Releasability status
33
check_suite:
44
types:
55
- completed
6+
workflow_dispatch:
7+
68
jobs:
79
update_releasability_status:
810
runs-on: ubuntu-latest
@@ -12,14 +14,17 @@ jobs:
1214
statuses: write
1315
contents: read
1416
if: >-
15-
(contains(fromJSON('["main", "master"]'),
17+
github.event_name == 'workflow_dispatch' ||
18+
((contains(fromJSON('["main", "master"]'),
1619
github.event.check_suite.head_branch) ||
1720
startsWith(github.event.check_suite.head_branch, 'dogfood-') ||
1821
startsWith(github.event.check_suite.head_branch, 'branch-')) &&
1922
github.event.check_suite.conclusion == 'success' &&
20-
github.event.check_suite.app.slug == 'cirrus-ci'
23+
github.event.check_suite.app.slug == 'cirrus-ci')
2124
steps:
2225
- uses: >-
2326
SonarSource/gh-action_releasability/[email protected]
2427
env:
2528
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
29+
with:
30+
ignore-failure: true

0 commit comments

Comments
 (0)