Skip to content

Commit 0d1e4de

Browse files
author
rubyowo
authored
ci: automatically sync maintainers in the team (catppuccin#174)
Co-authored-by: winston <hey@winston.sh
1 parent 2d71c9e commit 0d1e4de

4 files changed

Lines changed: 629 additions & 116 deletions

File tree

.github/workflows/maintainers.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Sync Maintainers
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths:
7+
- "src/userstyles.yml"
8+
9+
env:
10+
DENO_DIR: deno_cache
11+
12+
jobs:
13+
sync-maintainers:
14+
runs-on: ubuntu-latest
15+
name: Sync Maintainers
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
with:
20+
token: ${{ secrets.USERSTYLES_TOKEN }}
21+
ref: ${{ github.ref }}
22+
23+
- name: Set up Deno
24+
uses: denoland/setup-deno@v1
25+
with:
26+
deno-version: v1.x
27+
28+
- name: Cache Deno dependencies
29+
uses: actions/cache@v3
30+
with:
31+
key: ${{ hashFiles('src/generate/deno.lock') }}
32+
path: ${{ env.DENO_DIR }}
33+
34+
- name: Sync Maintainers
35+
working-directory: src/generate
36+
run: ./syncMaintainers.ts
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.USERSTYLES_TOKEN }}
39+
40+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json

0 commit comments

Comments
 (0)