Skip to content

Commit 55bfa50

Browse files
CLOUDP-297926: Update GH action to send reminder about sunset to the shared slack channel
1 parent e4f1b1e commit 55bfa50

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,13 @@ jobs:
125125
- name: Send Slack Notification
126126
if: steps.create-jira-ticket.outputs.jira-ticket-id != null
127127
env:
128-
SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID_APIX_2 }}
128+
SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }}
129129
SLACK_BEARER_TOKEN: ${{ secrets.SLACK_BEARER_TOKEN }}
130+
SLACK_APIX_2_ONCALL_USER: ${{secrets.SLACK_APIX_2_ONCALL_USER}}
130131
JIRA_TICKET_ID: ${{ steps.create-jira-ticket.outputs.jira-ticket-id }}
131132
run: |
132133
echo "JIRA_TICKET_ID: ${JIRA_TICKET_ID}"
133134
message_id=$(curl -X POST -H 'Authorization: Bearer '"${SLACK_BEARER_TOKEN}" \
134135
-H 'Content-type: application/json' \
135-
--data '{"channel":"'"${SLACK_CHANNEL_ID}"'","text":"The following APIs are scheduled to be sunset in the next 3 months. See Jira Ticket: https://jira.mongodb.org/browse/'"${JIRA_TICKET_ID}"'","parse": "full",}' https://slack.com/api/chat.postMessage | jq '.ts')
136+
--data '{"channel":"'"${SLACK_CHANNEL_ID}"'","text":"The following APIs are scheduled to be sunset in the next 3 months ('"${SLACK_APIX_2_ONCALL_USER}"'). See Jira Ticket: https://jira.mongodb.org/browse/'"${JIRA_TICKET_ID}"'","parse": "full",}' https://slack.com/api/chat.postMessage | jq '.ts')
136137
echo "message_id=${message_id}"]

0 commit comments

Comments
 (0)