generated from hugo-fixit/hugo-fixit-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 1022 Bytes
/
update-theme.yml
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 theme
# Controls when the workflow will run
on:
schedule:
# Update theme automatically everyday at 00:00 UTC
- cron: "0 0 * * *"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
Update-FixIt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
# use the environment variable HUGO_VERSION as the hugo version, if not set, use `latest`.
hugo-version: ${{ vars.HUGO_VERSION || 'latest' }}
extended: true
- name: Update theme
run: hugo mod get -u github.com/hugo-fixit/FixIt@latest
- name: Tidy go.mod, go.sum
run: hugo mod tidy
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: ':arrow_up: Chore(theme): update FixIt version'
commit_author: 'github-actions[bot] <github-actions[bot]@users.noreply.github.com>'