Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/maintainers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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@v3
with:
token: ${{ secrets.USERSTYLES_TOKEN }}
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/generate/deno.lock') }}
path: ${{ env.DENO_DIR }}

- name: Sync Maintainers
working-directory: src/generate
run: ./syncMaintainers.ts
env:
GITHUB_TOKEN: ${{ secrets.USERSTYLES_TOKEN }}

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
Loading