-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: reativando cronjob do bot do twitter
- Loading branch information
1 parent
0886692
commit 31b799a
Showing
1 changed file
with
28 additions
and
28 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
# name: Script de automação das postagens no X | ||
name: Script de automação das postagens no X | ||
|
||
# on: | ||
# workflow_dispatch: | ||
# schedule: | ||
# - cron: '00 15 * * *' # todos os dias 12h00 | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '00 15 * * *' #todos os dias 12h00 | ||
|
||
# jobs: | ||
# run-python: | ||
# runs-on: ubuntu-latest | ||
jobs: | ||
run-python: | ||
runs-on: ubuntu-latest | ||
|
||
# steps: | ||
# - name: Checkout repository | ||
# uses: actions/checkout@v2 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
# - name: Setup Python | ||
# uses: actions/setup-python@v2 | ||
# with: | ||
# python-version: '3.10.12' | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10.12' | ||
|
||
# - name: Install dependencies | ||
# run: | | ||
# python3 -m pip install --upgrade pip | ||
# pip install -r requirements.txt | ||
- name: Install dependencies | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
# - name: Run Script | ||
# env: | ||
# TWITTER_API_KEY: ${{ secrets.TWITTER_API_KEY }} | ||
# TWITTER_API_KEY_SECRET: ${{ secrets.TWITTER_API_KEY_SECRET }} | ||
# TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }} | ||
# TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} | ||
# TWITTER_BEARER_TOKEN: ${{ secrets.TWITTER_BEARER_TOKEN }} | ||
# run: | | ||
# python3 backend/twitter/auto.py | ||
- name: Run Script | ||
env: | ||
TWITTER_API_KEY: ${{ secrets.TWITTER_API_KEY }} | ||
TWITTER_API_KEY_SECRET: ${{ secrets.TWITTER_API_KEY_SECRET }} | ||
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }} | ||
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} | ||
TWITTER_BEARER_TOKEN: ${{ secrets.TWITTER_BEARER_TOKEN }} | ||
run: | | ||
python3 backend/twitter/auto.py |