38 lines
826 B
YAML
38 lines
826 B
YAML
name: Sync Maintainers
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
paths:
|
|
- "scripts/userstyles.yml"
|
|
|
|
env:
|
|
DENO_DIR: /tmp/deno_cache
|
|
|
|
jobs:
|
|
sync-maintainers:
|
|
name: Sync maintainers
|
|
runs-on: ubuntu-latest
|
|
|
|
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('./deno.lock') }}
|
|
path: ${{ env.DENO_DIR }}
|
|
|
|
- name: Sync maintainers
|
|
if: ${{ github.repository == 'catppuccin/userstyles' && github.ref == 'refs/heads/main' }}
|
|
run: deno task ci:sync-maintainers
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.USERSTYLES_TOKEN }}
|