twitter-list-sync

🐦 Sync your Twitter followers/following to Lists

View the Project on GitHub AnandChowdhary/twitter-list-sync

🐦 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

💻 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: $
          TWITTER_API_SECRET_KEY: $
          TWITTER_ACCESS_TOKEN: $
          TWITTER_ACCESS_TOKEN_SECRET: $
          FOLLOWING_LIST: $
          FOLLOWERS_LIST: $
          REMOVE_AFTER_ADDING: $

📄 License