Skip to content

GitHub Actions

Catppuccin Whiskers can be installed in GitHub Actions to generate and/or check templates match the generated files.

The catppuccin/setup-whiskers action installs whiskers into the GitHub Actions $PATH.

For code snippets to copy/paste into your workflows, see Usage and Examples.

Many repositories using Whiskers store the generated file(s) in source control, allowing the --check command to verify that the generated file(s) match the template(s) at all times.

A reusable organisation workflow is stored in the catppuccin/actions repository.

Catppuccin ports generated with Whiskers should use the reusable workflow, as shown below:

.github/workflows/whiskers-check.yml
name: whiskers
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
run:
uses: catppuccin/actions/.github/workflows/whiskers-check.yml@v1
with:
args: <template_file>
secrets: inherit

For some “real world” examples, search GitHub with the query “org:catppuccin path:*.yml catppuccin/actions/.github/workflows/whiskers-check.yml”.

If the reusable workflow cannot be used, you can use the following template below:

.github/workflows/whiskers-check.yml
name: whiskers
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Setup Whiskers
uses: catppuccin/setup-whiskers@v2
- name: Check
run: |
whiskers --check <output_file> <template_file>

For some “real world” examples, search GitHub with the query “org:catppuccin path:*.yml catppuccin/setup-whiskers”.