Files
userstyles/.github/workflows/maintainers.yml
T
winstonanduncenter ff8da1e094 ci(lint): init (#318)
* ci(lint): init

This finishes what #132 started, supersedes #317 (thanks for the stylelint setup!)

* ci(lint): add stylelint

Co-authored-by: uncenter <[email protected]>
2023-11-16 22:45:25 +01:00

41 lines
932 B
YAML

name: Sync Maintainers
on:
workflow_dispatch:
push:
paths:
- "src/userstyles.yml"
env:
DENO_DIR: deno_cache
jobs:
sync-maintainers:
runs-on: ubuntu-latest
name: Sync maintainers
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Set up Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Cache Deno dependencies
uses: actions/cache@v3
with:
key: ${{ hashFiles('src/deno.lock') }}
path: ${{ env.DENO_DIR }}
- name: Sync maintainers
if: ${{ github.repository == 'catppuccin/userstyles' && github.ref == 'refs/heads/main' }}
working-directory: ./src
run: deno task sync-maintainers
env:
GITHUB_TOKEN: ${{ secrets.USERSTYLES_TOKEN }}
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json