Skip to content

Commit

Permalink
Merge pull request #17 from biigle/issue-7
Browse files Browse the repository at this point in the history
Add schema action
  • Loading branch information
mzur authored Oct 2, 2024
2 parents 4a45fae + 5209195 commit 2e35a34
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/update-schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Update Schema

on:
push:
branches:
- main
paths:
- 'src/Database/migrations/**'

jobs:
update-schema:

runs-on: ubuntu-latest

steps:
- name: Trigger schema update
run: |
curl -X POST --fail \
-H "Authorization: token ${{ secrets.BIIGLE_SCHEMA_API_TOKEN }}" \
-H "Content-Type: application/json" \
--data '{"event_type": "build_application"}' \
https://api.github.com/repos/biigle/schema/dispatches

0 comments on commit 2e35a34

Please sign in to comment.