Update themes #537
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 themes | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
env: | |
HUGO_VERSION: "v0.119.0" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
HUGO_CACHEDIR: /tmp/hugo_cache | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: "^1.21.0" | |
- name: Update submodules | |
shell: bash | |
working-directory: ./cmd/hugothemesitebuilder | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "bep" | |
go install github.com/gohugoio/hugo@${{ env.HUGO_VERSION }} | |
go run main.go build -skipSiteBuild -cleanCache | |
cd build | |
hugo mod get | |
hugo mod tidy | |
git add . | |
git commit -am "[Bot] Update themes" | |
git push --force-with-lease |