Skip to content

Commit

Permalink
feat: add sync-collection-configs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Mini256 authored Oct 9, 2024
1 parent ae60376 commit c599219
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/sync-collection-configs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Sync Collection Configs

on:
push:
paths:
- 'configs/collections/**'
workflow_dispatch:

jobs:
validate:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: packages/cli
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: true

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'

- name: Verify Collection Configs
run: pnpm run cli:collection:reload
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
GITHUB_ACCESS_TOKENS: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c599219

Please sign in to comment.