mirror of
https://github.com/catppuccin/catppuccin
synced 2025-02-26 03:57:12 +00:00
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
name: Generate READMEs
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: ["main"]
|
|
paths: ["resources/**"]
|
|
pull_request:
|
|
paths: ["resources/**"]
|
|
|
|
jobs:
|
|
readme:
|
|
runs-on: ubuntu-latest
|
|
name: Re-generate README sections
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Deno
|
|
uses: nekowinston/setup-deno@v1
|
|
with:
|
|
deno-json-path: resources/deno.json
|
|
deno-lock-path: resources/deno.lock
|
|
directory: resources
|
|
|
|
- name: Update READMEs
|
|
working-directory: resources/generate
|
|
run: ./main.ts
|
|
|
|
- name: Push changes
|
|
uses: stefanzweifel/git-auto-commit-action@v4
|
|
# only push once upstreamed
|
|
if: ${{ github.repository == 'catppuccin/catppuccin' && github.ref == 'refs/heads/main' }}
|
|
with:
|
|
commit_message: "chore: re-generate README sections"
|
|
commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
|
|
branch: ${{ github.head_ref }}
|
|
|
|
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|