Update theme #727
This file contains hidden or 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 | |
| # Controls when the workflow will run | |
| on: | |
| schedule: | |
| # Update theme automatically every week at 00:00 on Sunday | |
| - 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: | |
| - name: Check out repository code | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| fetch-depth: 0 | |
| - name: Configure git identity | |
| run: | | |
| git config --global user.name "github-actions[bot]" | |
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
| - name: Update theme components | |
| run: | | |
| git submodule update --remote --merge | |
| - uses: actions/setup-node@v6 | |
| - name: Fetch and split theme configuration | |
| run: | | |
| npx fixit-cli split https://raw.githubusercontent.com/hugo-fixit/FixIt/refs/heads/main/hugo.toml | |
| rm -f config/_default/mediaTypes.toml | |
| rm -f config/_default/outputFormats.toml | |
| - name: Commit changes | |
| uses: stefanzweifel/git-auto-commit-action@v7 | |
| with: | |
| commit_message: 'chore(deps): update theme and components version' | |
| commit_author: 'github-actions[bot] <github-actions[bot]@users.noreply.github.com>' |