Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
feat: settings vars not linked to service
Browse files Browse the repository at this point in the history
  • Loading branch information
engnadeau committed Sep 21, 2021
1 parent d645428 commit b540af9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- master
jobs:
build:
name: Trigger Pruning
name: Prune
runs-on: ubuntu-20.04
steps:
- name: Checkout
Expand All @@ -24,11 +24,10 @@ jobs:
- name: Run
env:
super_secret: ${{ secrets.SuperSecret }}
PERSONAL_CRON_API_KEY: ${{ secrets.API_KEY }}
PERSONAL_CRON_API_SECRET_KEY: ${{ secrets.API_SECRET_KEY }}
PERSONAL_CRON_BEARER_TOKEN: ${{ secrets.BEARER_TOKEN }}
PERSONAL_CRON_ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
PERSONAL_CRON_ACCESS_TOKEN_SECRET: ${{ secrets.ACCESS_TOKEN_SECRET }}
SOCIAL_MEDIA_CRON_TWITTER_API_KEY: ${{ secrets.TWITTER_API_KEY }}
SOCIAL_MEDIA_CRON_TWITTER_API_SECRET_KEY: ${{ secrets.TWITTER_API_SECRET_KEY }}
SOCIAL_MEDIA_CRON_TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
SOCIAL_MEDIA_CRON_TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
run: |
pipenv run python scripts/prune_twitter.py prune_tweets
pipenv run python scripts/prune_twitter.py prune_friends
2 changes: 1 addition & 1 deletion scripts/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
ROOT_DIR = Path(__file__).parents[1]

settings = Dynaconf(
envvar_prefix="PERSONAL_CRON",
envvar_prefix="SOCIAL_MEDIA_CRON",
settings_files=[ROOT_DIR / "settings.toml", ROOT_DIR / ".secrets.toml"],
)
6 changes: 3 additions & 3 deletions settings.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TWEET_PRUNE_DAYS=60
FRIEND_PRUNE_DAYS=30
TWEEPY_SLEEP_TIME=910
twitter_tweet_prune_days=60
twitter_friend_prune_days=30
twitter_tweepy_sleep_time=910

0 comments on commit b540af9

Please sign in to comment.