SONARSCALA-111 Add automated release workflow#101
SONARSCALA-111 Add automated release workflow#101tomasz-tylenda-sonarsource merged 3 commits intomasterfrom
Conversation
Add workflows for automated release process: - automated-release.yml: Main workflow that orchestrates the release - bump-versions.yaml: Bumps gradle.properties version after release - Update release.yml to support workflow_dispatch for automated releases Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
6d06a54 to
6b8e6dc
Compare
nils-werner-sonarsource
left a comment
There was a problem hiding this comment.
LGTM! Just added two suggestions, to use a different action I just released.
| required: true | ||
| type: string | ||
|
|
||
| jobs: |
There was a problem hiding this comment.
I just released https://github.com/SonarSource/release-github-actions/blob/master/bump-version/README.md. It includes an input for excluded modules. Also it uses a different PR creating approach, so you do not have to close and re-open a PR.
There was a problem hiding this comment.
Updated. I don't think we need to exclude its/sources, because Gradle requires changes only in one top-level file.
.github/workflows/bump-versions.yml
Outdated
| VERSION: "${{ inputs.version }}-SNAPSHOT" | ||
| run: | | ||
| sed -i "s/version=.*-SNAPSHOT/version=${VERSION}/" gradle.properties | ||
| - uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8 |
There was a problem hiding this comment.
If you just want to benefit from for a better PR creation you can use this action https://github.com/SonarSource/release-github-actions/blob/master/create-pull-request/README.md
There was a problem hiding this comment.
I updated the action to bump the version, so I believe we do not need it.
|





Summary
automated-release.ymlworkflow that orchestrates the full release process (Jira tickets, GitHub release, SQS/SQC integration PRs)bump-versions.yamlworkflow to auto-bumpgradle.propertiesversion after releaserelease.ymlto supportworkflow_dispatchtrigger for automated releasesPrerequisites
Jira Tech User GitHubas Administrator on SONARSCALA Jira projectJira Tech User GitHubas Administrator on SONARSCALA in Jira sandboxsonar-scala-release-automationsecret)Test plan
dry-run: trueto verify Jira sandbox tickets and draft GitHub releasegradle.properties🤖 Generated with Claude Code