From 5e15f25cceab0f314a4f04cc3c5deff0b83ee41f Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Thu, 16 Nov 2023 10:36:50 -0500 Subject: [PATCH] Improve GHA notices --- .github/workflows/finalize.yml | 16 ---------------- .github/workflows/spring-artifactory-release.yml | 2 +- .github/workflows/spring-finalize-release.yml | 4 +++- .github/workflows/spring-stage-release.yml | 3 +-- 4 files changed, 5 insertions(+), 20 deletions(-) delete mode 100644 .github/workflows/finalize.yml diff --git a/.github/workflows/finalize.yml b/.github/workflows/finalize.yml deleted file mode 100644 index e4a37ff..0000000 --- a/.github/workflows/finalize.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Finalize Release - -on: - workflow_dispatch: - inputs: - milestone: - description: 'Milestone title like 3.0.0-M1, 3.1.0-RC1, 3.2.0 etc.' - required: true - type: string - -jobs: - release: - uses: spring-projects/spring-integration-aws/.github/workflows/spring-finalize-release.yml@main - with: - milestone: ${{ inputs.milestone }} - secrets: inherit \ No newline at end of file diff --git a/.github/workflows/spring-artifactory-release.yml b/.github/workflows/spring-artifactory-release.yml index a4bd9b2..974e002 100644 --- a/.github/workflows/spring-artifactory-release.yml +++ b/.github/workflows/spring-artifactory-release.yml @@ -39,7 +39,7 @@ jobs: exit 1 fi echo releaseVersion=$RELEASE_VERSION >> $GITHUB_OUTPUT - echo "::notice::RELEASE VERSION=$RELEASE_VERSION" + echo "::notice title=RELEASE VERSION::$RELEASE_VERSION" staging: needs: releaseVersion diff --git a/.github/workflows/spring-finalize-release.yml b/.github/workflows/spring-finalize-release.yml index 9722915..4f18258 100644 --- a/.github/workflows/spring-finalize-release.yml +++ b/.github/workflows/spring-finalize-release.yml @@ -35,7 +35,9 @@ jobs: --changelog.contributors.exclude.names=$repositoryTeam - name: GitHub Release - run: gh release create v${{ env.MILESTONE }} -F changelog.md ${{ (contains(env.MILESTONE, '-M') || contains(env.MILESTONE, '-RC')) && '--prerelease' }} + run: | + RELEASE_URL=$(gh release create v${{ env.MILESTONE }} -F changelog.md ${{ (contains(env.MILESTONE, '-M') || contains(env.MILESTONE, '-RC')) && '--prerelease' }}) + echo "::notice title=Release Page::$RELEASE_URL" - name: Close Milestone run: | diff --git a/.github/workflows/spring-stage-release.yml b/.github/workflows/spring-stage-release.yml index 018f289..68e1e1a 100644 --- a/.github/workflows/spring-stage-release.yml +++ b/.github/workflows/spring-stage-release.yml @@ -83,5 +83,4 @@ jobs: fi echo buildName=$buildName >> $GITHUB_OUTPUT echo buildNumber=$buildNumber >> $GITHUB_OUTPUT - echo "::notice::Artifactory Build Name=$buildName" - echo "::notice::Artifactory Build Number=$buildNumber" \ No newline at end of file + echo "::notice title=Artifactory Build Name & Number::$buildName/$buildNumber" \ No newline at end of file