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
|
||||
|
||||
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
|
||||
|
||||
#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
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue