rubyowo 0d1e4deb9b
ci: automatically sync maintainers in the team (#174)
Co-authored-by: winston <hey@winston.sh
2023-08-20 10:42:35 +01:00

41 lines
892 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@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