Remove temporary finalize.yml

* Disable Slack notification temporary
* Add conditional `--prerelease` to the `gh release create` step
This commit is contained in:
Artem Bilan
2023-11-15 12:39:56 -05:00
parent 7b41d75f9f
commit 8945cd2467
2 changed files with 11 additions and 28 deletions

View File

@@ -1,17 +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 }}
repositoryTeam: artembilan
secrets: inherit

View File

@@ -36,7 +36,7 @@ jobs:
--changelog.contributors.exclude.names=${{ inputs.repositoryTeam }}
- name: GitHub Release
run: gh release create v${{ env.MILESTONE }} -F changelog.md
run: gh release create v${{ env.MILESTONE }} -F changelog.md ${{ (contains(env.MILESTONE, '-M') || contains(env.MILESTONE, '-RC')) && '--prerelease' }}
- name: Close Milestone
run: |
@@ -45,13 +45,13 @@ jobs:
gh api -X PATCH repos/$GITHUB_REPOSITORY/milestones/$MILESTONE_ID -f state='closed' --silent
fi
- name: Announce Release on Slack
uses: slackapi/slack-github-action@v1.24.0
env:
SLACK_WEBHOOK_URL: ${{ secrets.SPRING_RELEASE_SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
with:
payload: |
{
"text": "${{ github.event.repository.name }}-announcing `${{ env.MILESTONE }}`"
}
# - name: Announce Release on Slack
# uses: slackapi/slack-github-action@v1.24.0
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SPRING_RELEASE_SLACK_WEBHOOK_URL }}
# SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
# with:
# payload: |
# {
# "text": "${{ github.event.repository.name }}-announcing `${{ env.MILESTONE }}`"
# }