Update README all day at 12:35 #121
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 README all day at 12:35 | |
on: | |
push: | |
workflow_dispatch: | |
schedule: | |
- cron: '35 12 * * *' | |
jobs: | |
update-readme: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Update README.md file | |
run: | | |
node index.js > README.md | |
env: | |
CI: true | |
- name: commit changes | |
uses: EndBug/add-and-commit@v4 | |
with: | |
author_name: Erim | |
author_email: [email protected] | |
force: false | |
signoff: false | |
message: ':memo: README.md updated' | |
env: | |
# This is necessary in order to push a commit to the repo | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |