-
-
Notifications
You must be signed in to change notification settings - Fork 3
31 lines (28 loc) · 852 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: twitter auto update banner and name
on:
push:
branches:
- master
schedule:
- cron: '0 17 * * *'
jobs:
build:
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
- name: execute py script # run app.py
env:
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