Skip to content

Update Quote

Update Quote #378

Workflow file for this run

name: Update Quote
on:
workflow_dispatch: #Manually trigger the workflow
schedule:
- cron: '30 6 * * *' # Schedule daily at 12:01 AM Indian Time
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 14
- name: Install dependencies
run: npm install
- name: Update Quote
run: node update-quote.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit and push changes
run: |
git add README.md
git -c user.name='Kiran1689' -c user.email='[email protected]' commit -m "Update README with daily quote" -a
git push