Update Hugo Modules #2
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
# SPDX-FileCopyrightText: 2023 Siemens AG | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
# | |
# Author: Michael Adler <[email protected]> | |
name: Update Hugo Modules | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 1 * *" # monthly | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
update-hugo-deps: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: latest | |
extended: true | |
- name: update-hugo-modules | |
run: cd hugo && hugo mod get -u | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
commit-message: "chore(deps): update Hugo dependencies" | |
title: "chore(deps): update Hugo dependencies" | |
body: | | |
Updates Hugo's dependencies. | |
Auto-generated by [create-pull-request][1] | |
[1]: https://github.com/peter-evans/create-pull-request | |
labels: dependencies, hugo | |
branch: chore/deps/hugo-updates | |
delete-branch: true | |
signoff: true |