Skip to content

Update twt-update.yml #3

Update twt-update.yml

Update twt-update.yml #3

Workflow file for this run

#name of the workflow

Check failure on line 1 in .github/workflows/twt-update.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/twt-update.yml

Invalid workflow file

invalid `cron` attribute "/0 * * * *"
name: Recent x
on:
schedule:
- cron: '/0 * * * *' # Update tweets every 30 minutes. You can adjust the frequency as needed.
jobs:
update_tweets:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14' # You can adjust the Node.js version if needed.
- name: Install Dependencies
run: npm install tweet-update
- name: Fetch and Update Tweets
env:
TWITTER_API_KEY: ${{ secrets.TWITTER_API_KEY }}
TWITTER_API_SECRET_KEY: ${{ secrets.TWITTER_API_SECRET_KEY }}
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
run: npx tweet-update --username codewithdev --count 5 --output README.md --placeholder "MY XES"