Skip to content

Commit e668247

Browse files
Update api-versions-reminder.yml
1 parent 22e134e commit e668247

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
@@ -27,15 +27,15 @@ jobs:
2727

2828
# Send Slack notification only if the Jira ticket was created
2929
- name: Send Slack Notification
30+
if: steps.check-api-versions.outputs.api_versions != null
3031
env:
3132
SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID_APIX_2 }}
3233
SLACK_BEARER_TOKEN: ${{ secrets.SLACK_BEARER_TOKEN }}
3334
API_VERSIONS: ${{ steps.check-api-versions.outputs.api_versions }}
34-
JIRA_TICKET_ID: ${{ steps.create-jira-ticket.outputs.jira-ticket-id }}
3535
run: |
3636
message_id=$(curl -X POST -H 'Authorization: Bearer '"${SLACK_BEARER_TOKEN}" \
3737
-H 'Content-type: application/json' \
38-
--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')
38+
--data '{"channel":"'"${SLACK_CHANNEL_ID}"'","text":"The following API Versions are scheduled to be released in the next 3 weeks: '"${API_VERSIONS}"'.","parse": "full",}' https://slack.com/api/chat.postMessage | jq '.ts')
3939
echo "message_id=${message_id}"
4040
4141
sunset-api-version-reminder:

0 commit comments

Comments
 (0)