Add Fern badge to README.md #243
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Fern check | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
fern-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v4 | |
- name: Install fern | |
run: npm install -g fern-api | |
- name: Generate code | |
env: | |
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | |
run: fern generate --group publish --local --log-level=debug | |
- name: Copy files | |
run: rm generated/__init__.py && cp -r generated/* nixtla | |
- name: Verify no changes were made | |
run: if git diff --exit-code; then echo "No changes"; else echo "Changes were made"; exit 1; fi |