Skip to content

Commit f427341

Browse files
committed
Add names to jobs based on release version
* Add `-r ${{ github.ref_name }}` to `gh workflow run` command to choose `verify-staged-artifacts.yml` from a branch the current release is running against
1 parent 27d5935 commit f427341

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/spring-artifactory-release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
7272
staging:
7373
needs: releaseVersion
74+
name: Stage ${{ needs.releaseVersion.outputs.releaseVersion }}
7475
uses: ./.github/workflows/spring-stage-release.yml
7576
with:
7677
releaseVersion: ${{ needs.releaseVersion.outputs.releaseVersion }}
@@ -79,6 +80,7 @@ jobs:
7980

8081
verify-staged:
8182
needs: [releaseVersion, staging]
83+
name: Verify ${{ needs.releaseVersion.outputs.releaseVersion }}
8284
runs-on: ubuntu-latest
8385
steps:
8486

@@ -87,10 +89,11 @@ jobs:
8789
show-progress: false
8890

8991
- name: Call smoke tests workflow
90-
run: gh workflow run verify-staged-artifacts.yml -f releaseVersion=${{ needs.releaseVersion.outputs.releaseVersion }}
92+
run: gh workflow run verify-staged-artifacts.yml -r ${{ github.ref_name }} -f releaseVersion=${{ needs.releaseVersion.outputs.releaseVersion }}
9193

9294
promote-milestone:
9395
needs: [releaseVersion, staging, verify-staged]
96+
name: Promote ${{ needs.releaseVersion.outputs.releaseVersion }}
9497
if: ${{ (contains(needs.releaseVersion.outputs.releaseVersion, '-M') || contains(needs.releaseVersion.outputs.releaseVersion, '-RC')) }}
9598
uses: ./.github/workflows/spring-artifactory-promote-milestone.yml
9699
with:
@@ -100,6 +103,7 @@ jobs:
100103

101104
promote-ga:
102105
needs: [releaseVersion, staging, verify-staged]
106+
name: Promote ${{ needs.releaseVersion.outputs.releaseVersion }}
103107
if: ${{ !contains(needs.releaseVersion.outputs.releaseVersion, '-') }}
104108
uses: ./.github/workflows/spring-artifactory-promote-central.yml
105109
with:
@@ -110,6 +114,7 @@ jobs:
110114
finalize:
111115
if: ${{ !(failure() || cancelled()) }}
112116
needs: [releaseVersion, promote-milestone, promote-ga]
117+
name: Finalize ${{ needs.releaseVersion.outputs.releaseVersion }}
113118
uses: ./.github/workflows/spring-finalize-release.yml
114119
with:
115120
milestone: ${{ needs.releaseVersion.outputs.releaseVersion }}

0 commit comments

Comments
 (0)