From ce83f01c38147147728f426b543e4359f20d5f5e Mon Sep 17 00:00:00 2001 From: "antoine.vinot" Date: Thu, 19 Dec 2024 15:52:07 +0100 Subject: Add releasability workflow --- .github/workflows/releasability.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/releasability.yml (limited to '.github') diff --git a/.github/workflows/releasability.yml b/.github/workflows/releasability.yml new file mode 100644 index 0000000..f3b1e49 --- /dev/null +++ b/.github/workflows/releasability.yml @@ -0,0 +1,23 @@ +# 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.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -- cgit v1.2.3