Skip to content

Automated Release

Automated Release #16

name: Automated Release
on:
workflow_dispatch:
inputs:
short-description:
description: "Short description for the REL ticket"
required: true
type: string
branch:
description: "Branch from which to do the release"
required: true
default: "master"
type: string
new-version:
description: "New version to release (without -SNAPSHOT; if left empty, the current minor version will be auto-incremented)"
required: false
type: string
verbose:
description: "Enable verbose logging"
type: boolean
default: false
dry-run:
description: "Test mode: uses Jira sandbox and creates draft GitHub release"
type: boolean
default: true
ide-integration:
description: "Integrate into IDE"
type: boolean
default: true
sqc-integration:
description: "Integrate into SQC"
type: boolean
default: true
sqs-integration:
description: "Integrate into SQS"
type: boolean
default: true
bump-version:
description: "Create PR to bump the next iteration version"
type: boolean
default: true
jobs:
release:
name: Release
uses: SonarSource/release-github-actions/.github/workflows/automated-release.yml@v1
permissions:
statuses: read
id-token: write
contents: write
actions: write
pull-requests: write
with:
project-name: "SonarJava"
plugin-name: "java"
# Artifacts are matched exactly, so this will prevent updating javascript.
plugin-artifacts-sqs: "java"
plugin-artifacts-sqc: "java"
jira-project-key: "SONARJAVA"
runner-environment: "sonar-xs-public"
rule-props-changed: false
short-description: ${{ github.event.inputs.short-description }}
new-version: ${{ github.event.inputs.new-version }}
sqc-integration: ${{ github.event.inputs.sqc-integration == 'true' }}
sqs-integration: ${{ github.event.inputs.sqs-integration == 'true' }}
create-sle-ticket: ${{ github.event.inputs.ide-integration == 'true' }}
create-sli-ticket: ${{ github.event.inputs.ide-integration == 'true' }}
create-slvscode-ticket: ${{ github.event.inputs.ide-integration == 'true' }}
branch: ${{ github.event.inputs.branch }}
pm-email: "jean.jimbo@sonarsource.com"
slack-channel: "squad-jvm-releases"
verbose: ${{ github.event.inputs.verbose == 'true' }}
use-jira-sandbox: ${{ github.event.inputs.dry-run == 'true' }}
is-draft-release: ${{ github.event.inputs.dry-run == 'true' }}
issue-categories: "Feature,False Positive,False Negative,Bug,Security,Maintenance"
bump-version: ${{ github.event.inputs.bump-version == 'true' }}
bump-version-normalize: true
bump-version-tool: maven