-
-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (30 loc) · 933 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
32
33
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