twitter auto update banner and name #152
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: twitter auto update banner and name | |
on: | |
push: | |
branches: | |
# - master | |
- main | |
schedule: | |
- cron: "0 17 * * *" | |
jobs: | |
execute: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v3 | |
- name: setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: install tweepy | |
run: | | |
python -m pip install --upgrade pip | |
pip install tweepy python-dotenv | |
- name: execute py script # run app.py | |
env: | |
NODEMAVEN_PROXY: "${{ secrets.NODEMAVEN_PROXY }}" | |
TWITTER_API_KEY: "${{ secrets.TWITTER_API_KEY }}" | |
TWITTER_API_SECRET: "${{ secrets.TWITTER_API_SECRET }}" | |
TWITTER_ACCESS_TOKEN: "${{ secrets.TWITTER_ACCESS_TOKEN }}" | |
TWITTER_ACCESS_TOKEN_SECRET: "${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}" | |
run: python app.py |