|
| 1 | +name: Automated Release |
| 2 | +on: |
| 3 | + workflow_dispatch: |
| 4 | + inputs: |
| 5 | + short-description: |
| 6 | + description: "Short description for the REL ticket" |
| 7 | + required: true |
| 8 | + type: string |
| 9 | + sq-ide-short-description: |
| 10 | + description: "Short summary of SQ IDE related changes (optional, falls back to short-description)" |
| 11 | + required: false |
| 12 | + type: string |
| 13 | + sqc-integration: |
| 14 | + description: "Integrate into SQC" |
| 15 | + type: boolean |
| 16 | + default: true |
| 17 | + sqs-integration: |
| 18 | + description: "Integrate into SQS" |
| 19 | + type: boolean |
| 20 | + default: true |
| 21 | + branch: |
| 22 | + description: "Branch from which to do the release" |
| 23 | + required: true |
| 24 | + default: "master" |
| 25 | + type: string |
| 26 | + new-version: |
| 27 | + description: "New version to release (without -SNAPSHOT; if left empty, the current minor version will be auto-incremented)" |
| 28 | + required: false |
| 29 | + type: string |
| 30 | + rule-props-changed: |
| 31 | + description: > |
| 32 | + "@RuleProperty" changed? See SC-4654 |
| 33 | + type: boolean |
| 34 | + default: false |
| 35 | + |
| 36 | +jobs: |
| 37 | + release: |
| 38 | + name: Release |
| 39 | + uses: SonarSource/release-github-actions/.github/workflows/automated-release.yml@v1 |
| 40 | + permissions: |
| 41 | + statuses: read |
| 42 | + id-token: write |
| 43 | + contents: write |
| 44 | + actions: write |
| 45 | + pull-requests: write |
| 46 | + with: |
| 47 | + project-name: "SonarJS" |
| 48 | + plugin-name: "javascript" |
| 49 | + jira-project-key: "JS" |
| 50 | + rule-props-changed: ${{ github.event.inputs.rule-props-changed }} |
| 51 | + short-description: ${{ github.event.inputs.short-description }} |
| 52 | + sq-ide-short-description: ${{ github.event.inputs.sq-ide-short-description }} |
| 53 | + new-version: ${{ github.event.inputs.new-version }} |
| 54 | + sqc-integration: ${{ github.event.inputs.sqc-integration == 'true' }} |
| 55 | + sqs-integration: ${{ github.event.inputs.sqs-integration == 'true' }} |
| 56 | + create-slvs-ticket: true |
| 57 | + create-slvscode-ticket: true |
| 58 | + create-sle-ticket: true |
| 59 | + create-sli-ticket: true |
| 60 | + branch: ${{ github.event.inputs.branch }} |
| 61 | + pm-email: "gabriel.vivas@sonarsource.com" |
| 62 | + slack-channel: "ask-squad-web" |
| 63 | + release-automation-secret-name: "SonarJS-release-automation" |
| 64 | + verbose: true |
| 65 | + use-jira-sandbox: false |
| 66 | + is-draft-release: true |
| 67 | + |
| 68 | + bump_versions: |
| 69 | + name: Bump versions |
| 70 | + needs: release |
| 71 | + uses: ./.github/workflows/bump-versions.yml |
| 72 | + permissions: |
| 73 | + contents: write |
| 74 | + pull-requests: write |
| 75 | + with: |
| 76 | + version: ${{ needs.release.outputs.new-version }} |
0 commit comments