Add tasks for segment sync and posthog sync
This commit is contained in:
parent
d2954de4c7
commit
8eeaafcaba
1 changed files with 38 additions and 38 deletions
76
.github/workflows/daily_twitter_stats.yaml
vendored
76
.github/workflows/daily_twitter_stats.yaml
vendored
|
|
@ -1,38 +1,38 @@
|
||||||
name: analytics | Send Twitter Followers to Segment
|
#name: analytics | Send Twitter Followers to Segment
|
||||||
|
#
|
||||||
on: pull_request
|
#on: pull_request
|
||||||
|
#
|
||||||
#on:
|
##on:
|
||||||
# schedule:
|
## schedule:
|
||||||
# - cron: '0 0 * * *' # Runs daily at midnight UTC. Adjust as needed.
|
## - cron: '0 0 * * *' # Runs daily at midnight UTC. Adjust as needed.
|
||||||
# workflow_dispatch: # Allows manual triggering of the workflow
|
## workflow_dispatch: # Allows manual triggering of the workflow
|
||||||
|
#
|
||||||
jobs:
|
#jobs:
|
||||||
send-followers:
|
# send-followers:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
|
#
|
||||||
steps:
|
# steps:
|
||||||
- name: Checkout repository
|
# - name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
# uses: actions/checkout@v3
|
||||||
|
#
|
||||||
- name: Set up Python
|
# - name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
# uses: actions/setup-python@v4
|
||||||
with:
|
# with:
|
||||||
python-version: '3.x'
|
# python-version: '3.x'
|
||||||
|
#
|
||||||
- name: Install dependencies
|
# - name: Install dependencies
|
||||||
run: |
|
# run: |
|
||||||
pip install tweepy requests
|
# pip install tweepy requests
|
||||||
|
#
|
||||||
- name: Send Twitter Followers to Segment
|
# - name: Send Twitter Followers to Segment
|
||||||
env:
|
# env:
|
||||||
TWITTER_API_KEY: ${{ secrets.TWITTER_API_KEY }}
|
# TWITTER_API_KEY: ${{ secrets.TWITTER_API_KEY }}
|
||||||
TWITTER_API_SECRET: ${{ secrets.TWITTER_API_SECRET }}
|
# TWITTER_API_SECRET: ${{ secrets.TWITTER_API_SECRET }}
|
||||||
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
|
# TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
|
||||||
TWITTER_ACCESS_SECRET: ${{ secrets.TWITTER_ACCESS_SECRET }}
|
# TWITTER_ACCESS_SECRET: ${{ secrets.TWITTER_ACCESS_SECRET }}
|
||||||
SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY }}
|
# SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY }}
|
||||||
TWITTER_USERNAME: ${{ secrets.TWITTER_USERNAME }}
|
# TWITTER_USERNAME: ${{ secrets.TWITTER_USERNAME }}
|
||||||
run: |
|
# run: |
|
||||||
cd tools
|
# cd tools
|
||||||
python daily_twitter_stats.py
|
# python daily_twitter_stats.py
|
||||||
|
#
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue