From 8eeaafcabae772a11c110df3b7300742f5d81062 Mon Sep 17 00:00:00 2001 From: Vasilije <8619304+Vasilije1990@users.noreply.github.com> Date: Mon, 30 Sep 2024 19:10:23 +0200 Subject: [PATCH] Add tasks for segment sync and posthog sync --- .github/workflows/daily_twitter_stats.yaml | 76 +++++++++++----------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/.github/workflows/daily_twitter_stats.yaml b/.github/workflows/daily_twitter_stats.yaml index 747d936a8..e6e6e9b93 100644 --- a/.github/workflows/daily_twitter_stats.yaml +++ b/.github/workflows/daily_twitter_stats.yaml @@ -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 +#