Update themes #432
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: | |
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.19.5" | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/go-build | |
~/go/pkg/mod | |
${{ env.HUGO_CACHEDIR }} | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Update submodules | |
shell: bash | |
working-directory: ./cmd/hugothemesitebuilder/build | |
run: | | |
git config --global user.email "bep@users.noreply.github.com" | |
git config --global user.name "bep" | |
go install github.com/gohugoio/hugo@v0.110.0 | |
hugo mod get -u | |
git add . | |
git commit -am "[Bot] Update themes" | |
git push --force-with-lease |