Skip to content

Commit

Permalink
Add update schema action
Browse files Browse the repository at this point in the history
  • Loading branch information
mzur committed Jan 9, 2024
1 parent f458f4b commit 5098614
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:
- master
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 5098614

Please sign in to comment.