5
5
PROJECT_NAME : " SonarPHP"
6
6
LANGUAGE : " php"
7
7
USE_JIRA_SANDBOX : false
8
- DRAFT_RELEASE : false
8
+ IS_DRAFT_RELEASE : false
9
9
10
10
11
11
on :
16
16
A brief summary of what the release contains.
17
17
This will be added directly to the release ticket.
18
18
required : true
19
+ sq_compatibility :
20
+ description : |
21
+ SonarQube compatibility.
22
+ Default needs to be changed only in case of LTA fix release.
23
+ default : " >=10.8"
19
24
next_version :
20
25
description : |
21
26
Specify the version for the next release (e.g., 4.2.0).
26
31
The name of the release version in Jira.
27
32
If blank, the action will try to use the *only* unreleased version in the project.
28
33
required : false
34
+ release_notes :
35
+ description : |
36
+ Github release notes.
37
+ If blank, release notes will be generated from the Jira Release.
29
38
sonarlint_changelog :
30
39
description : |
31
40
A summary of release notes relevant to the SonarQube IDE extensions.
92
101
project_name : ${{ env.PROJECT_NAME }}
93
102
version : ${{ needs.check_releasability.outputs.version }}
94
103
short_description : ${{ github.event.inputs.short_description }}
95
- sq_compatibility : " >=LTS "
104
+ sq_compatibility : ${{ github.event.inputs.sq_compatibility }}
96
105
targeted_product : " 11.0"
97
106
jira_release_name : ${{ github.event.inputs.jira_release_name }}
98
107
sonarlint_changelog : ${{ github.event.inputs.sonarlint_changelog }}
@@ -135,7 +144,8 @@ jobs:
135
144
jira_release_name : ${{ needs.create_release_ticket.outputs.release_name }}
136
145
jira_user : ${{ fromJSON(steps.secrets.outputs.vault).JIRA_USER }}
137
146
jira_token : ${{ fromJSON(steps.secrets.outputs.vault).JIRA_TOKEN }}
138
- draft : ${{ env.DRAFT_RELEASE }}
147
+ draft : ${{ env.IS_DRAFT_RELEASE }}
148
+ release_notes : ${{ github.event.inputs.release_notes }}
139
149
140
150
release :
141
151
name : Sonar release
@@ -212,9 +222,9 @@ jobs:
212
222
id-token : write
213
223
outputs :
214
224
sqs_ticket_key : ${{ steps.integration_update.outputs.sqs_ticket_key }}
215
- sc_ticket_key : ${{ steps.integration_update.outputs.sc_ticket_key }}
225
+ sqc_ticket_key : ${{ steps.integration_update.outputs.sc_ticket_key }}
216
226
sqs_ticket_url : ${{ steps.integration_update.outputs.sqs_ticket_url}}
217
- sc_ticket_url : ${{ steps.integration_update.outputs.sc_ticket_url }}
227
+ sqc_ticket_url : ${{ steps.integration_update.outputs.sc_ticket_url }}
218
228
steps :
219
229
- name : Get Jira Credentials from Vault
220
230
id : secrets
@@ -230,24 +240,24 @@ jobs:
230
240
with :
231
241
jira_user : ${{ fromJSON(steps.secrets.outputs.vault).JIRA_USER }}
232
242
jira_token : ${{ fromJSON(steps.secrets.outputs.vault).JIRA_TOKEN }}
233
- release_ticket_key : " REL-3639 "
243
+ release_ticket_key : ${{ needs.create_release_ticket.outputs.release_ticket_key }}
234
244
sqs_fix_versions : ${{ github.event.inputs.sqs_fix_versions }}
235
245
use_sandbox : ${{ env.USE_JIRA_SANDBOX }}
236
246
237
247
- name : Echo Found Ticket Keys
238
248
run : |
239
249
echo "Found SQS integration ticket: ${{ steps.integration_update.outputs.sqs_ticket_key }}"
240
- echo "Found SC integration ticket: ${{ steps.integration_update.outputs.sc_ticket_key }}"
250
+ echo "Found SQC integration ticket: ${{ steps.integration_update.outputs.sc_ticket_key }}"
241
251
242
252
update-analyzers :
243
- name : Update Analyzers in SQS and SC
253
+ name : Update Analyzers in SQS and SQC
244
254
runs-on : ubuntu-latest
245
255
needs : [ update-integration-tickets, check_releasability ]
246
256
permissions :
247
257
id-token : write
248
258
outputs :
249
259
sqs_pr_url : ${{ steps.update_step_sqs.outputs.pr-url }}
250
- sc_pr_url : ${{ steps.update_step_sc .outputs.pr-url }}
260
+ sqc_pr_url : ${{ steps.update_step_sqc .outputs.pr-url }}
251
261
steps :
252
262
- name : Get GitHub token from Vault
253
263
id : secrets
@@ -262,20 +272,20 @@ jobs:
262
272
with :
263
273
version : ${{ needs.check_releasability.outputs.version }}
264
274
ticket : ${{ needs.update-integration-tickets.outputs.sqs_ticket_key }}
265
- plugin-language : ' php '
275
+ plugin-language : ${{ env.LANGUAGE }}
266
276
github-token : ${{ fromJSON(steps.secrets.outputs.vault).GITHUB_TOKEN }}
267
- draft : true
277
+ draft : ${{ env.IS_DRAFT_RELEASE }}
268
278
reviewers : ${{ github.event.inputs.integration_prs_reviewers }}
269
279
270
- - name : Update analyzer in SC
271
- id : update_step_sc
280
+ - name : Update analyzer in SQC
281
+ id : update_step_sqc
272
282
uses : SonarSource/release-github-actions/update-analyzer@09c557fb83722adbe2af2ca7e625324e15739362
273
283
with :
274
284
version : ${{ needs.check_releasability.outputs.version }}
275
- ticket : ${{ needs.update-integration-tickets.outputs.sc_ticket_key }}
276
- plugin-language : ' php '
285
+ ticket : ${{ needs.update-integration-tickets.outputs.sqc_ticket_key }}
286
+ plugin-language : ${{ env.LANGUAGE }}
277
287
github-token : ${{ fromJSON(steps.secrets.outputs.vault).GITHUB_TOKEN }}
278
- draft : true
288
+ draft : ${{ env.IS_DRAFT_RELEASE }}
279
289
reviewers : ${{ github.event.inputs.integration_prs_reviewers }}
280
290
281
291
summarize_release :
@@ -294,6 +304,6 @@ jobs:
294
304
echo "- **Release Ticket URL:** ${{ needs.create_release_ticket.outputs.release_ticket_url }}" >> $GITHUB_STEP_SUMMARY
295
305
echo "- **GitHub Release URL:** ${{ needs.publish_release.outputs.release_url }}" >> $GITHUB_STEP_SUMMARY
296
306
echo "- **SQS Integration Ticket URL:** ${{ needs.update-integration-tickets.outputs.sqs_ticket_url }}" >> $GITHUB_STEP_SUMMARY
297
- echo "- **SQC Integration Ticket URL:** ${{ needs.update-integration-tickets.outputs.sc_ticket_url }}" >> $GITHUB_STEP_SUMMARY
307
+ echo "- **SQC Integration Ticket URL:** ${{ needs.update-integration-tickets.outputs.sqc_ticket_url }}" >> $GITHUB_STEP_SUMMARY
298
308
echo "- **SQS Analyzer PR URL:** ${{ needs.update-analyzers.outputs.sqs_pr_url }}" >> $GITHUB_STEP_SUMMARY
299
- echo "- **SQC Analyzer PR URL:** ${{ needs.update-analyzers.outputs.sc_pr_url }}" >> $GITHUB_STEP_SUMMARY
309
+ echo "- **SQC Analyzer PR URL:** ${{ needs.update-analyzers.outputs.sqc_pr_url }}" >> $GITHUB_STEP_SUMMARY
0 commit comments