Remove temporary finalize.yml
* Disable Slack notification temporary * Add conditional `--prerelease` to the `gh release create` step
This commit is contained in:
17
.github/workflows/finalize.yml
vendored
17
.github/workflows/finalize.yml
vendored
@@ -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
|
||||
22
.github/workflows/spring-finalize-release.yml
vendored
22
.github/workflows/spring-finalize-release.yml
vendored
@@ -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 }}`"
|
||||
# }
|
||||
Reference in New Issue
Block a user