Skip to content

SONARSCALA-111 Add automated release workflow#101

Merged
tomasz-tylenda-sonarsource merged 3 commits intomasterfrom
tt/add-automated-release-workflow
Feb 23, 2026
Merged

SONARSCALA-111 Add automated release workflow#101
tomasz-tylenda-sonarsource merged 3 commits intomasterfrom
tt/add-automated-release-workflow

Conversation

@tomasz-tylenda-sonarsource
Copy link
Contributor

@tomasz-tylenda-sonarsource tomasz-tylenda-sonarsource commented Feb 20, 2026

Summary

  • Add automated-release.yml workflow that orchestrates the full release process (Jira tickets, GitHub release, SQS/SQC integration PRs)
  • Add bump-versions.yaml workflow to auto-bump gradle.properties version after release
  • Update release.yml to support workflow_dispatch trigger for automated releases

Prerequisites

  • Add Jira Tech User GitHub as Administrator on SONARSCALA Jira project
  • Add Jira Tech User GitHub as Administrator on SONARSCALA in Jira sandbox
  • Merge vault permissions PR (to create sonar-scala-release-automation secret)

Test plan

  • Run automated release with dry-run: true to verify Jira sandbox tickets and draft GitHub release
  • Verify bump-versions workflow creates PR with correct version in gradle.properties
  • Verify release.yml still works correctly when triggered by a GitHub release event

🤖 Generated with Claude Code

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>
@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod bot changed the title Add automated release workflow SONARSCALA-111 Add automated release workflow Feb 20, 2026
@hashicorp-vault-sonar-prod
Copy link
Contributor

hashicorp-vault-sonar-prod bot commented Feb 20, 2026

SONARSCALA-111

Copy link

@nils-werner-sonarsource nils-werner-sonarsource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just added two suggestions, to use a different action I just released.

required: true
type: string

jobs:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated. I don't think we need to exclude its/sources, because Gradle requires changes only in one top-level file.

VERSION: "${{ inputs.version }}-SNAPSHOT"
run: |
sed -i "s/version=.*-SNAPSHOT/version=${VERSION}/" gradle.properties
- uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the action to bump the version, so I believe we do not need it.

@sonarqube-next
Copy link

@tomasz-tylenda-sonarsource tomasz-tylenda-sonarsource merged commit c3725c9 into master Feb 23, 2026
8 checks passed
@tomasz-tylenda-sonarsource tomasz-tylenda-sonarsource deleted the tt/add-automated-release-workflow branch February 23, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants