Skip to content

Commit

Permalink
Put the secrets file to a .config folder
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianK13 committed Oct 5, 2023
1 parent 79fca02 commit 49839d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/toot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
TOOT_CONFIG: ${{ secrets.PYTOOTER_USERCRED }}
# Write that information to the secret file
run: |-
echo $TOOT_CONFIG > pytooter_usercred.secret
echo $TOOT_CONFIG > ~/.config/pytooter_usercred.secret
python mastodon_bot.py
# So we can see what it last did:
- name: Commit posts.csv
Expand Down
2 changes: 1 addition & 1 deletion mastodon_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
def main():
today = date.today()
print("Today's date:", today)
mastodon = Mastodon(access_token = 'pytooter_usercred.secret')
mastodon = Mastodon(access_token = '~/.config/pytooter_usercred.secret')
petitionen_list = get_10k_petitionen()
if petitionen_list is None:
return None
Expand Down

0 comments on commit 49839d8

Please sign in to comment.