Update theme components #1
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 theme components | |
# Controls when the workflow will run | |
on: | |
schedule: | |
# Update theme components automatically every week | |
- cron: "0 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: | |
hugo-version: latest | |
extended: true | |
- name: Update theme components | |
run: hugo mod get -u | |
- 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(deps): update theme components" | |
commit_author: "lruihao-bot <[email protected]>" |