Try with created type for release event

* Disable Slack notification to avoid noise
This commit is contained in:
Artem Bilan
2023-11-09 17:20:44 -05:00
parent 27a3c508f9
commit cf2214c3f1
2 changed files with 11 additions and 11 deletions

View File

@@ -3,7 +3,7 @@ name: Close Milestone
on:
release:
types:
- published
- created
jobs:
close-milestone:

View File

@@ -36,13 +36,13 @@ jobs:
OWNER: ${{ github.repository_owner }}
REPO: ${{ github.event.repository.name }}
- 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 `${{ steps.milestone-id.outputs.version }}`"
}
# - 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 `${{ steps.milestone-id.outputs.version }}`"
# }