Skip to content

Commit fcdee53

Browse files
fix: send slack notification in GH action
1 parent 2a56d39 commit fcdee53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/api-versions-reminder.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- cron: '0 9 * * 1-5' # Run once a day at 09:00 UTC between Monday and Friday
77

88
jobs:
9-
send-changelog-report:
9+
send-api-version-reminder:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout repository (dev branch)
@@ -45,5 +45,5 @@ jobs:
4545
run: |
4646
message_id=$(curl -X POST -H 'Authorization: Bearer '"${SLACK_BEARER_TOKEN}" \
4747
-H 'Content-type: application/json' \
48-
--data '{"channel":"'"${SLACK_CHANNEL_ID}"'","text":"The following API Versions are scheduled to be released in the next 3 weeks: '"${API_VERSIONS}"'. Jira Ticket: https://jira.mongodb.org/browse/'"${env.JIRA_TICKET_ID}"'","parse": "full",}' https://slack.com/api/chat.postMessage | jq '.ts')
48+
--data '{"channel":"'"${SLACK_CHANNEL_ID}"'","text":"The following API Versions are scheduled to be released in the next 3 weeks: '"${API_VERSIONS}"'. Jira Ticket: https://jira.mongodb.org/browse/'"${JIRA_TICKET_ID}"'","parse": "full",}' https://slack.com/api/chat.postMessage | jq '.ts')
4949
echo "message_id=${message_id}"

0 commit comments

Comments
 (0)