Publish new version #205
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@v4 | |
- run: | | |
date +%s > lastUpdate | |
git config user.name SrGobi | |
git config user.email contacto@srgobi.com | |
git add lastUpdate | |
git diff --quiet && git diff --staged --quiet || git commit -m "[bot] Update blog with latest" | |
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/SrGobi/srgobi.com.git main |