From 1354eb7c4e2ad1091d60e27a17df01928db60123 Mon Sep 17 00:00:00 2001 From: Abhinav Thota <59943893+abeeto@users.noreply.github.com> Date: Tue, 2 Jun 2026 02:22:23 -0700 Subject: [PATCH] ci: remove twitter automations (#3563) Co-authored-by: Abhinav Thota Co-authored-by: V Thulisile Sibanda <66913810+thulieblack@users.noreply.github.com> --- .github/scripts/createRecurringTweetFile.js | 20 ------------- .../recurring_tweets/discuss-ideas.tweet | 5 ---- .../scripts/recurring_tweets/slack-link.tweet | 7 ----- .github/workflows/create-event-ad-hoc.yml | 4 --- .../create-event-community-meeting.yml | 4 --- .../issues_templates/ad-hoc.md | 4 --- .../issues_templates/community.md | 4 --- .../lets-talk-about-contrib.md | 4 --- .../issues_templates/spec-3-0.md | 4 --- .../issues_templates/spec-3-docs.md | 4 --- .../issues_templates/thinking-out-loud.md | 4 --- .../create-event-lets-talk-about.yml | 4 --- .github/workflows/create-event-spec-3-0.yml | 4 --- .../workflows/create-event-spec-3-docs.yml | 4 --- .../create-event-thinking-out-loud.yml | 4 --- .../create-event-workflow-reusable.yml | 16 ---------- .github/workflows/twitter-recurring-ideas.yml | 30 ------------------- .github/workflows/twitter-recurring-slack.yml | 28 ----------------- 18 files changed, 154 deletions(-) delete mode 100644 .github/scripts/createRecurringTweetFile.js delete mode 100644 .github/scripts/recurring_tweets/discuss-ideas.tweet delete mode 100644 .github/scripts/recurring_tweets/slack-link.tweet delete mode 100644 .github/workflows/twitter-recurring-ideas.yml delete mode 100644 .github/workflows/twitter-recurring-slack.yml diff --git a/.github/scripts/createRecurringTweetFile.js b/.github/scripts/createRecurringTweetFile.js deleted file mode 100644 index dcf553fc90..0000000000 --- a/.github/scripts/createRecurringTweetFile.js +++ /dev/null @@ -1,20 +0,0 @@ -const { copyFileSync, mkdirSync, existsSync } = require('fs'); -const path = require('path'); - -// this script copies a tweet with tweet file name passed with TWEET_FILENAME env variable and puts it -// in the /tweets/ directory, under a dedicated directory that indicates it is recurring tweet -// filename of the tweet is a date that indicates when it was tweeted - -// to run it locally just call in terminal the following from a root of the project -// TWEET_FILENAME=discuss-ideas.tweet node .github/scripts/createTweetFile.js - -const tweetFilename = process.env['TWEET_FILENAME']; //is a filename with file extension, like "discuss-ideas.tweet" -const date = new Date().toISOString().split('T')[0] // gives us YYYY-MM-DD that will be used as a filename for the tweet -const filenameNoExt = path.parse(tweetFilename).name; // gives us for example "discuss-ideas" from "discuss-ideas.tweet". It is needed for custom folder name -const customDestinyDir = path.join(__dirname,`../../tweets/recurring-${filenameNoExt}`); //gives us for example "tweets/recurring-discuss-ideas" - -const copySrc = path.join(__dirname, `/recurring_tweets/${tweetFilename}`); // gives us for example ".github/scripts/recurring_tweets/discuss-ideas.tweet" -const copyDest = `${customDestinyDir}/${date}.tweet`; //gives us for example "tweets/recurring-discuss-ideas/2021-10-14.tweet" - -if (!existsSync(customDestinyDir)) mkdirSync(customDestinyDir); // we need to create new custom dir only if it doesn't exist yet, otherwise we would get an error -copyFileSync(copySrc, copyDest); // copies a file with new name to new location \ No newline at end of file diff --git a/.github/scripts/recurring_tweets/discuss-ideas.tweet b/.github/scripts/recurring_tweets/discuss-ideas.tweet deleted file mode 100644 index 92b19fefe2..0000000000 --- a/.github/scripts/recurring_tweets/discuss-ideas.tweet +++ /dev/null @@ -1,5 +0,0 @@ -Do you have some nice ideas for #AsyncAPI-related tools? Do you want to validate and share with the AsyncAPI community? - -Drop it πŸ‘‡ and let us have an open discussion πŸš€ - -https://github.com/asyncapi/community/discussions/categories/ideas \ No newline at end of file diff --git a/.github/scripts/recurring_tweets/slack-link.tweet b/.github/scripts/recurring_tweets/slack-link.tweet deleted file mode 100644 index 0bd3e88656..0000000000 --- a/.github/scripts/recurring_tweets/slack-link.tweet +++ /dev/null @@ -1,7 +0,0 @@ -✨ Did you know #AsyncAPI is on Slack? ✨ - -Join our Slack workspace to chat with anyone from our Open-Source community! - -πŸ”— asyncapi.com/slack-invite - -Ask for help and help others too. πŸ’ͺ🏿πŸ’ͺ🏽🦾 \ No newline at end of file diff --git a/.github/workflows/create-event-ad-hoc.yml b/.github/workflows/create-event-ad-hoc.yml index a0f086b54c..893b285e95 100644 --- a/.github/workflows/create-event-ad-hoc.yml +++ b/.github/workflows/create-event-ad-hoc.yml @@ -41,7 +41,3 @@ jobs: STREAM_KEY: ${{ secrets.STREAM_KEY }} CALENDAR_ID: ${{ secrets.CALENDAR_ID }} CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }} - TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }} - TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }} - TWITTER_ACCESS_TOKEN_KEY: ${{ secrets.TWITTER_ACCESS_TOKEN_KEY }} - TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} diff --git a/.github/workflows/create-event-community-meeting.yml b/.github/workflows/create-event-community-meeting.yml index 63f2fb3ea3..8b1e3b7875 100644 --- a/.github/workflows/create-event-community-meeting.yml +++ b/.github/workflows/create-event-community-meeting.yml @@ -34,7 +34,3 @@ jobs: STREAM_KEY: ${{ secrets.STREAM_KEY }} CALENDAR_ID: ${{ secrets.CALENDAR_ID }} CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }} - TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }} - TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }} - TWITTER_ACCESS_TOKEN_KEY: ${{ secrets.TWITTER_ACCESS_TOKEN_KEY }} - TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} diff --git a/.github/workflows/create-event-helpers/issues_templates/ad-hoc.md b/.github/workflows/create-event-helpers/issues_templates/ad-hoc.md index 0c5b0f3d35..86c0f38b65 100644 --- a/.github/workflows/create-event-helpers/issues_templates/ad-hoc.md +++ b/.github/workflows/create-event-helpers/issues_templates/ad-hoc.md @@ -34,10 +34,6 @@ labels: meeting Watch live. -Twitter -Watch live. - - LinkedIn Watch live. diff --git a/.github/workflows/create-event-helpers/issues_templates/community.md b/.github/workflows/create-event-helpers/issues_templates/community.md index 80f56dfcd4..60d3ddbdab 100644 --- a/.github/workflows/create-event-helpers/issues_templates/community.md +++ b/.github/workflows/create-event-helpers/issues_templates/community.md @@ -35,10 +35,6 @@ labels: meeting Watch live. -Twitter -Watch live. - - LinkedIn Watch live. diff --git a/.github/workflows/create-event-helpers/issues_templates/lets-talk-about-contrib.md b/.github/workflows/create-event-helpers/issues_templates/lets-talk-about-contrib.md index 4ff99c7db2..aaf601239e 100644 --- a/.github/workflows/create-event-helpers/issues_templates/lets-talk-about-contrib.md +++ b/.github/workflows/create-event-helpers/issues_templates/lets-talk-about-contrib.md @@ -35,10 +35,6 @@ labels: meeting Watch live. -Twitter -Watch live. - - LinkedIn Watch live. diff --git a/.github/workflows/create-event-helpers/issues_templates/spec-3-0.md b/.github/workflows/create-event-helpers/issues_templates/spec-3-0.md index 94be2f65e1..422fabaf33 100644 --- a/.github/workflows/create-event-helpers/issues_templates/spec-3-0.md +++ b/.github/workflows/create-event-helpers/issues_templates/spec-3-0.md @@ -35,10 +35,6 @@ labels: meeting Watch live. -Twitter -Watch live. - - LinkedIn Watch live. diff --git a/.github/workflows/create-event-helpers/issues_templates/spec-3-docs.md b/.github/workflows/create-event-helpers/issues_templates/spec-3-docs.md index 94be2f65e1..422fabaf33 100644 --- a/.github/workflows/create-event-helpers/issues_templates/spec-3-docs.md +++ b/.github/workflows/create-event-helpers/issues_templates/spec-3-docs.md @@ -35,10 +35,6 @@ labels: meeting Watch live. -Twitter -Watch live. - - LinkedIn Watch live. diff --git a/.github/workflows/create-event-helpers/issues_templates/thinking-out-loud.md b/.github/workflows/create-event-helpers/issues_templates/thinking-out-loud.md index d09a701264..98ca3bad43 100644 --- a/.github/workflows/create-event-helpers/issues_templates/thinking-out-loud.md +++ b/.github/workflows/create-event-helpers/issues_templates/thinking-out-loud.md @@ -39,10 +39,6 @@ labels: meeting Watch live. -Twitter -Watch live. - - LinkedIn Watch live. diff --git a/.github/workflows/create-event-lets-talk-about.yml b/.github/workflows/create-event-lets-talk-about.yml index 5d6d41756c..d23ce816a9 100644 --- a/.github/workflows/create-event-lets-talk-about.yml +++ b/.github/workflows/create-event-lets-talk-about.yml @@ -38,7 +38,3 @@ jobs: STREAM_KEY: ${{ secrets.STREAM_KEY }} CALENDAR_ID: ${{ secrets.CALENDAR_ID }} CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }} - TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }} - TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }} - TWITTER_ACCESS_TOKEN_KEY: ${{ secrets.TWITTER_ACCESS_TOKEN_KEY }} - TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} diff --git a/.github/workflows/create-event-spec-3-0.yml b/.github/workflows/create-event-spec-3-0.yml index ff4d7f4cf3..1d4e0c2b8d 100644 --- a/.github/workflows/create-event-spec-3-0.yml +++ b/.github/workflows/create-event-spec-3-0.yml @@ -35,7 +35,3 @@ jobs: STREAM_KEY: ${{ secrets.STREAM_KEY }} CALENDAR_ID: ${{ secrets.CALENDAR_ID }} CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }} - TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }} - TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }} - TWITTER_ACCESS_TOKEN_KEY: ${{ secrets.TWITTER_ACCESS_TOKEN_KEY }} - TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} diff --git a/.github/workflows/create-event-spec-3-docs.yml b/.github/workflows/create-event-spec-3-docs.yml index 176b1e0333..b391d59404 100644 --- a/.github/workflows/create-event-spec-3-docs.yml +++ b/.github/workflows/create-event-spec-3-docs.yml @@ -34,7 +34,3 @@ jobs: STREAM_KEY: ${{ secrets.STREAM_KEY }} CALENDAR_ID: ${{ secrets.CALENDAR_ID }} CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }} - TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }} - TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }} - TWITTER_ACCESS_TOKEN_KEY: ${{ secrets.TWITTER_ACCESS_TOKEN_KEY }} - TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} diff --git a/.github/workflows/create-event-thinking-out-loud.yml b/.github/workflows/create-event-thinking-out-loud.yml index 7b2dc71159..5971315f2e 100644 --- a/.github/workflows/create-event-thinking-out-loud.yml +++ b/.github/workflows/create-event-thinking-out-loud.yml @@ -40,7 +40,3 @@ jobs: STREAM_KEY: ${{ secrets.STREAM_KEY }} CALENDAR_ID: ${{ secrets.CALENDAR_ID }} CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }} - TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }} - TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }} - TWITTER_ACCESS_TOKEN_KEY: ${{ secrets.TWITTER_ACCESS_TOKEN_KEY }} - TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} diff --git a/.github/workflows/create-event-workflow-reusable.yml b/.github/workflows/create-event-workflow-reusable.yml index da64cf33cc..ebfaf7dfd9 100644 --- a/.github/workflows/create-event-workflow-reusable.yml +++ b/.github/workflows/create-event-workflow-reusable.yml @@ -62,14 +62,6 @@ on: required: true CALENDAR_SERVICE_ACCOUNT: required: true - TWITTER_CONSUMER_KEY: - required: true - TWITTER_CONSUMER_SECRET: - required: true - TWITTER_ACCESS_TOKEN_KEY: - required: true - TWITTER_ACCESS_TOKEN_SECRET: - required: true jobs: setup-meeting: @@ -147,11 +139,3 @@ jobs: script: | const { addEvent } = require('./.github/workflows/create-event-helpers/calendar/index.js'); addEvent('${{ steps.zoom.outputs.meetingUrl }}', '${{ inputs.date }}', '${{ inputs.time }}', '${{ steps.create-issue.outputs.number }}'); - - name: Publish information about meeting to Twitter - uses: m1ner79/Github-Twittction@6269f2c6ace92b904304ca33a18aebd5e5ae9ee7 # version v1.0.1 https://github.com/m1ner79/Github-Twittction/tree/v1.0.1/ - with: - twitter_status: "New meeting scheduled πŸ’ͺ\n\nName: ${{ inputs.meeting_name }}\n\nCheck what is it about and how to connect πŸ‘‡πŸΌ https://github.com/asyncapi/community/issues/${{ steps.create-issue.outputs.number }}" - twitter_consumer_key: ${{ secrets.TWITTER_CONSUMER_KEY }} - twitter_consumer_secret: ${{ secrets.TWITTER_CONSUMER_SECRET }} - twitter_access_token_key: ${{ secrets.TWITTER_ACCESS_TOKEN_KEY }} - twitter_access_token_secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} diff --git a/.github/workflows/twitter-recurring-ideas.yml b/.github/workflows/twitter-recurring-ideas.yml deleted file mode 100644 index 6170c7da51..0000000000 --- a/.github/workflows/twitter-recurring-ideas.yml +++ /dev/null @@ -1,30 +0,0 @@ -on: - schedule: - # Schedule when tweet should go out - # At 09:00 on the first day of the month, every month. - # https://crontab.guru/#0_9_1_*_* - - cron: "0 9 1 * *" - -name: Create tweet about ideas # provide custom name for recurring workflow that will help identify what is it about -jobs: - create-ideas-tweet: # provide clear identifier - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - name: Setup node to execute script - uses: actions/setup-node@v2 - with: - node-version: '14' - - name: Create another copy of the tweet - run: TWEET_FILENAME=discuss-ideas.tweet node ./.github/scripts/createRecurringTweetFile.js # provide a file name of the recurring tweet that you created - - name: Create Pull Request with new tweet - uses: peter-evans/create-pull-request@v3 - with: - token: ${{ secrets.GH_TOKEN }} - commit-message: 'chore(tweet): recurring tweet about discussion tools ideas in our discussions forum' # put some sort description - committer: asyncapi-bot - author: asyncapi-bot - title: 'chore(tweet): recurring tweet about discussion tools ideas in our discussions forum' # put some sort description - body: 'This is a tweet that we want to share regularly to make sure all AsyncAPI followers know about discussions forum' # put some longer description - branch: 'tweet/${{github.job}}' \ No newline at end of file diff --git a/.github/workflows/twitter-recurring-slack.yml b/.github/workflows/twitter-recurring-slack.yml deleted file mode 100644 index 9a3c45d6da..0000000000 --- a/.github/workflows/twitter-recurring-slack.yml +++ /dev/null @@ -1,28 +0,0 @@ -on: - schedule: - # Tweet at 10 every Saturday - - cron: "0 10 * * SAT" - -name: Create tweet about slack workspace -jobs: - create-slack-tweet: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - name: Setup node to execute script - uses: actions/setup-node@v2 - with: - node-version: '14' - - name: Create another copy of the tweet - run: TWEET_FILENAME=slack-link.tweet node ./.github/scripts/createRecurringTweetFile.js - - name: Create Pull Request with new tweet - uses: peter-evans/create-pull-request@v3 - with: - token: ${{ secrets.GH_TOKEN }} - commit-message: 'chore(tweet): recurring tweet about slack link' - committer: asyncapi-bot - author: asyncapi-bot - title: 'chore(tweet): recurring tweet about slack link' - body: 'This is a tweet that we want to share regularly to make sure all AsyncAPI followers know about our slack workspace' - branch: 'tweet/${{github.job}}' \ No newline at end of file