diff options
author | antoine.vinot <antoine.vinot@sonarsource.com> | 2024-12-19 15:52:07 +0100 |
---|---|---|
committer | antoine.vinot <antoine.vinot@sonarsource.com> | 2024-12-19 15:52:07 +0100 |
commit | b2cae1daa2b68bea7aae5e17c270d355d5f53c14 (patch) | |
tree | 0958039df7bd9ed2cf831ef611e8cffd4756513d | |
parent | 38de5793688c6cedc72c8de3edac9691e1feb16c (diff) | |
download | sonar-scanner-cli-avi/add-releasability-workflow.tar.gz sonar-scanner-cli-avi/add-releasability-workflow.zip |
Add releasability workflowavi/add-releasability-workflow
-rw-r--r-- | .github/workflows/releasability.yml | 23 |
1 files changed, 23 insertions, 0 deletions
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 }} |