#name: analytics | Send Twitter Followers to Segment # #on: pull_request # ##on: ## schedule: ## - cron: '0 0 * * *' # Runs daily at midnight UTC. Adjust as needed. ## workflow_dispatch: # Allows manual triggering of the workflow # #jobs: # send-followers: # runs-on: ubuntu-latest # # steps: # - name: Checkout repository # uses: actions/checkout@v3 # # - name: Set up Python # uses: actions/setup-python@v4 # with: # python-version: '3.x' # # - name: Install dependencies # run: | # pip install tweepy requests # # - name: Send Twitter Followers to Segment # env: # TWITTER_API_KEY: ${{ secrets.TWITTER_API_KEY }} # TWITTER_API_SECRET: ${{ secrets.TWITTER_API_SECRET }} # TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }} # TWITTER_ACCESS_SECRET: ${{ secrets.TWITTER_ACCESS_SECRET }} # SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY }} # TWITTER_USERNAME: ${{ secrets.TWITTER_USERNAME }} # run: | # cd tools # python daily_twitter_stats.py #