Skip to content

Commit 17f0010

Browse files
GHA-207 Include bump version PR in the summary (#111)
1 parent e407989 commit 17f0010

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/automated-release.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,8 @@ jobs:
489489
id-token: write
490490
contents: write
491491
pull-requests: write
492+
outputs:
493+
pull-request-url: ${{ steps.bump.outputs.pull-request-url }}
492494
steps:
493495
# Convert the version returned by release-in-jira to the full "major.minor.patch" format
494496
# (it drops the patch if it is 0).
@@ -506,6 +508,7 @@ jobs:
506508
echo "version=${OUTPUT}" >> "$GITHUB_OUTPUT"
507509
508510
- name: Bump version and create PR
511+
id: bump
509512
uses: SonarSource/release-github-actions/bump-version@v1
510513
with:
511514
version: ${{ steps.normalize.outputs.version || needs.release-in-jira.outputs.new-version }}
@@ -696,7 +699,15 @@ jobs:
696699
if: always()
697700
# NOTE: When adding a job to the needs list below, also add its result
698701
# to the RESULT_* env vars in the "Post Summary to Workflow" step.
699-
needs: [ check-releasability, prepare-release, publish-github-release, create-release-ticket, release-in-jira, create-integration-tickets, update-analyzers ]
702+
needs:
703+
- check-releasability
704+
- prepare-release
705+
- publish-github-release
706+
- create-release-ticket
707+
- release-in-jira
708+
- bump-version
709+
- create-integration-tickets
710+
- update-analyzers
700711
env:
701712
RELEASE_PROCESS: ${{ inputs.release-process != '' && inputs.release-process || 'https://xtranet-sonarsource.atlassian.net/wiki/spaces/CSD/pages/4325048388/Release+Instructions+-+Cloud+Security' }}
702713
steps:
@@ -712,6 +723,7 @@ jobs:
712723
SQC_TICKET_URL: ${{ needs.create-integration-tickets.outputs.sqc-ticket-url || 'not created' }}
713724
SQS_PR_URL: ${{ needs.update-analyzers.outputs.sqs-pull-request-url || 'not created' }}
714725
SQC_PR_URL: ${{ needs.update-analyzers.outputs.sqc-pull-request-url || 'not created' }}
726+
BUMP_VERSION_PR_URL: ${{ needs.bump-version.outputs.pull-request-url || 'not created' }}
715727
RESULT_CHECK_RELEASABILITY: ${{ needs.check-releasability.result }}
716728
RESULT_PREPARE_RELEASE: ${{ needs.prepare-release.result }}
717729
RESULT_PUBLISH_GITHUB_RELEASE: ${{ needs.publish-github-release.result }}
@@ -747,6 +759,7 @@ jobs:
747759
- SQC Integration Ticket: $SQC_TICKET_URL
748760
- SQS Analyzer PR: $SQS_PR_URL
749761
- SQC Analyzer PR: $SQC_PR_URL
762+
- Bump Version PR: $BUMP_VERSION_PR_URL
750763
EOF
751764
752765
echo "## Guidance" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)