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 9, 2024
1 parent af79b94 commit 9d3b884
Show file tree
Hide file tree
Showing 2 changed files with 24 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
21 changes: 21 additions & 0 deletions .github/workflows/workflow-schema-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy schema to data dictionary

on:
pull_request:
branches:
- main

defaults:
run:
shell: bash

jobs:
deploy:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Trigger data dictionary deploy
run: gh api -X POST repos/ministryofjustice/opg-data-dictionary/dispatches -f body='{"event_type":"redeploy"}'
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit 9d3b884

Please sign in to comment.