Skip to content

Commit 5be4f6e

Browse files
chore: remove new api version reminder (#445)
1 parent 419dba6 commit 5be4f6e

File tree

2 files changed

+0
-91
lines changed

2 files changed

+0
-91
lines changed

.github/scripts/upcoming_api_releases.sh

Lines changed: 0 additions & 59 deletions
This file was deleted.

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

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,6 @@ on:
66
- cron: '0 9 * * 1' # at 9:00 UTC on Monday
77

88
jobs:
9-
new-api-version-reminder:
10-
name: New API Version Release Reminder
11-
runs-on: ubuntu-latest
12-
steps:
13-
- name: Checkout repository (dev branch)
14-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
15-
with:
16-
sparse-checkout:
17-
.github/scripts/upcoming_api_releases.sh
18-
19-
- name: Install Python
20-
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38
21-
with:
22-
python-version: '3.12'
23-
24-
- name: Check if there are upcoming API versions releases
25-
id: check-api-versions
26-
run: .github/scripts/upcoming_api_releases.sh
27-
28-
# Send Slack notification only if the Jira ticket was created
29-
- name: Send Slack Notification
30-
if: steps.check-api-versions.outputs.api_versions != null
31-
env:
32-
SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID_APIX_2 }}
33-
SLACK_BEARER_TOKEN: ${{ secrets.SLACK_BEARER_TOKEN }}
34-
API_VERSIONS: ${{ steps.check-api-versions.outputs.api_versions }}
35-
run: |
36-
message_id=$(curl -X POST -H 'Authorization: Bearer '"${SLACK_BEARER_TOKEN}" \
37-
-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}"'.","parse": "full",}' https://slack.com/api/chat.postMessage | jq '.ts')
39-
echo "message_id=${message_id}"
40-
419
sunset-api-version-reminder:
4210
name: Sunset APIs Reminder
4311
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)