This repository has been archived by the owner on Nov 24, 2024. It is now read-only.
Publish new version #827
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 |