Skip to content

Merge pull request #122 from wheval/feat/bounty-hooks #36

Merge pull request #122 from wheval/feat/bounty-hooks

Merge pull request #122 from wheval/feat/bounty-hooks #36

Workflow file for this run

name: Check schema sync

Check failure on line 1 in .github/workflows/check-schema.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/check-schema.yml

Invalid workflow file

(Line: 18, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.BOUNDLESS_NESTJS_TOKEN != '', (Line: 26, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.BOUNDLESS_NESTJS_TOKEN == ''
on:
push:
branches: ["main", "master"]
pull_request:
branches: ["main", "master"]
jobs:
check-schema:
name: Check schema is in sync
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout canonical schema repo (private)
if: ${{ secrets.BOUNDLESS_NESTJS_TOKEN != '' }}
uses: actions/checkout@v4
with:
repository: boundlessfi/boundless-nestjs
path: boundless-nestjs
token: ${{ secrets.BOUNDLESS_NESTJS_TOKEN }}
- name: Note about private repo
if: ${{ secrets.BOUNDLESS_NESTJS_TOKEN == '' }}
run: |
echo "No secret BOUNDLESS_NESTJS_TOKEN provided; skipping checkout of private repo."
echo "If the canonical schema is in the private repo, add a repository secret named BOUNDLESS_NESTJS_TOKEN with a PAT that has access to boundlessfi/boundless-nestjs."
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Run schema check
run: node ./scripts/sync-schema.js --check