twitter-list-sync
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

🐦 Twitter List Sync

GitHub Action to sync your Twitter followers and following users to a list.

Twitter List Sync CI Build CI Release CI Node CI

⭐ Features

  • Schedule this action to run every day and neatly sync all your followers
  • Unfollow all accounts every day and add them in a "Following" list

💻 Usage

You need the following environment variables:

Environment variable Description
TWITTER_API_KEY Twitter API key
TWITTER_API_SECRET_KEY Twitter API secret
TWITTER_ACCESS_TOKEN Twitter access token
TWITTER_ACCESS_TOKEN_SECRET Twitter access secret
FOLLOWING_LIST List ID for following
FOLLOWERS_LIST List ID for followers
REMOVE_AFTER_ADDING Whether to remove following

Here's an example workflow using the action AnandChowdhary/twitter-list-sync:

name: Twitter List Sync CI
on:
  repository_dispatch:
    types: [sync]
  schedule:
    - cron: "45 9 * * *"
  push:
    branches: [master]
  workflow_dispatch:
jobs:
  release:
    name: Sync
    runs-on: ubuntu-18.04
    if: "!contains(github.event.head_commit.message, '[skip ci]')"
    steps:
      - name: Twitter List Sync
        uses: AnandChowdhary/twitter-list-sync@master
        env:
          TWITTER_API_KEY: ${{ secrets.TWITTER_API_KEY }}
          TWITTER_API_SECRET_KEY: ${{ secrets.TWITTER_API_SECRET_KEY }}
          TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
          TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
          FOLLOWING_LIST: ${{ secrets.FOLLOWING_LIST }}
          FOLLOWERS_LIST: ${{ secrets.FOLLOWERS_LIST }}
          REMOVE_AFTER_ADDING: ${{ secrets.REMOVE_AFTER_ADDING }}

📄 License

  • Code: MIT © Koj
  • "GitHub" is a trademark of GitHub, Inc.

Package Sidebar

Install

npm i twitter-list-sync

Weekly Downloads

0

Version

1.1.1

License

MIT

Unpacked Size

305 kB

Total Files

19

Last publish

Collaborators

  • anandchowdhary