Skip to content

Commit

Permalink
Deploy opg-data-dictionary when schemas change
Browse files Browse the repository at this point in the history
To ensure the latest versions are always hosted

#patch
  • Loading branch information
gregtyler committed May 14, 2024
1 parent af79b94 commit 3a42a67
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/workflow-pr.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: PR Workflow

on:
pull_request:
branches:
- main
# pull_request:
# branches:
# - main
workflow_dispatch:

defaults:
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/workflow-schema-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Deploy schema to data dictionary

on:
pull_request:
branches:
- main

defaults:
run:
shell: bash

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Trigger data dictionary deploy
run: gh api -X POST repos/ministryofjustice/opg-data-dictionary/dispatches -f event_type=redeploy
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

0 comments on commit 3a42a67

Please sign in to comment.