From aee3e5b509f5cc1f39140de25d5f86f936d02a30 Mon Sep 17 00:00:00 2001 From: "antoine.vinot" Date: Fri, 10 Jan 2025 11:07:37 +0100 Subject: [PATCH] Add releasabliity workflow --- .github/workflows/releasability.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/releasability.yml diff --git a/.github/workflows/releasability.yml b/.github/workflows/releasability.yml new file mode 100644 index 00000000..bac8e4b2 --- /dev/null +++ b/.github/workflows/releasability.yml @@ -0,0 +1,25 @@ +# yamllint disable rule:line-length +--- +name: Releasability status +'on': + check_suite: + types: + - completed +jobs: + update_releasability_status: + runs-on: ubuntu-latest + name: Releasability status + permissions: + id-token: write + statuses: write + contents: read + if: >- + (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-')) + && github.event.check_suite.conclusion == 'success' + && github.event.check_suite.app.slug == 'cirrus-ci' + steps: + - uses: SonarSource/gh-action_releasability/releasability-status@2.1.2 + with: + optional_checks: "Jira" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}