Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions .github/workflows/automated-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
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
rule-props-changed:
description: >
"@RuleProperty" changed? See SC-4654
type: boolean
default: false
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

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 Symbolic Execution"
plugin-name: "java-symbolic-execution"
jira-project-key: "JAVASE"
rule-props-changed: ${{ github.event.inputs.rule-props-changed }}
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-slvscode-ticket: ${{ github.event.inputs.ide-integration == 'true' }}
create-sle-ticket: ${{ github.event.inputs.ide-integration == 'true' }}
create-sli-ticket: ${{ github.event.inputs.ide-integration == 'true' }}
branch: ${{ github.event.inputs.branch }}
pm-email: "jean.jimbo@sonarsource.com"
slack-channel: "squad-jvm-notifs"
verbose: ${{ github.event.inputs.verbose == 'true' }}
use-jira-sandbox: ${{ github.event.inputs.dry-run == 'true' }}
is-draft-release: ${{ github.event.inputs.dry-run == 'true' }}
bump-version: true
bump-version-normalize: true
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ on:
release:
types:
- published
workflow_dispatch:
inputs:
version:
type: string
description: Version
required: true
releaseId:
type: string
description: Release ID
required: true
dryRun:
type: boolean
description: Flag to enable the dry-run execution
default: false

jobs:
release:
Expand All @@ -17,3 +31,6 @@ jobs:
publishToBinaries: true
mavenCentralSync: true
slackChannel: squad-jvm-notifs
version: ${{ inputs.version || github.event.release.tag_name }}
releaseId: ${{ inputs.releaseId || github.event.release.id }}
dryRun: ${{ inputs.dryRun == true }}
Loading