blob: f847668fa8cc8d3e595d73d446ee9e2184de9f23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
name: update-themes
on:
schedule:
- cron: '0 0 */3 * *'
jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_CACHEDIR: /tmp/hugo_cache
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.16.5'
- uses: actions/cache@v2
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 "digitalcraftsman@users.noreply.github.com"
git config --global user.name "digitalcraftsman"
go install github.com/gohugoio/hugo@v0.103.1
hugo mod get -u
git add .
git commit -am "[Bot] Update themes"
git push --force-with-lease
|