Skip to content

Auto Tweet Using AI #76

Auto Tweet Using AI

Auto Tweet Using AI #76

Workflow file for this run

name: Auto Tweet Using AI
# Runs every 8 hours (at 00:00, 08:00, and 16:00 UTC)
on:
schedule:
- cron: "0 0,8,16 * * *"
# This command allows us to run the Action automatically from the Actions tab.
workflow_dispatch:
jobs:
build:
name: Auto Tweet Using AI
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "20.x"
- name: Install Dependencies
run: npm ci
- name: Run Twitter bot
env:
APP_KEY: ${{ secrets.APP_KEY }}
APP_SECRET: ${{ secrets.APP_SECRET }}
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
ACCESS_SECRET: ${{ secrets.ACCESS_SECRET }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: npm start