Publish new version #812
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: Publish new version | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 7 * * *" | |
repository_dispatch: | |
types: | |
- webhook | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: | | |
date +%s > lastUpdate | |
git config user.name midudev | |
git config user.email [email protected] | |
git add lastUpdate | |
git diff --quiet && git diff --staged --quiet || git commit -m "[bot] Update blog with latest" | |
git push origin master |