Add action.yml file for generating and updating markdown content #6
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 | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "0 */1 * * *" | |
jobs: | |
markscribe: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- uses: msg087/public@main | |
env: | |
GITHUB_TOKEN: ${{ secrets.UPDATE_WAKATIME }} | |
with: | |
template: "templates/README.md.tpl" | |
writeTo: "README.md" | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.UPDATE_WAKATIME }} | |
with: | |
commit_message: Update generated README | |
branch: main | |
commit_user_name: msg087 | |
commit_user_email: [email protected] | |
commit_author: msg087 |