Update Quote #260
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
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 | |