diff --git a/.github/workflows/workflow-pr.yml b/.github/workflows/workflow-pr.yml index 6f68d939..22ca909f 100644 --- a/.github/workflows/workflow-pr.yml +++ b/.github/workflows/workflow-pr.yml @@ -1,9 +1,9 @@ name: PR Workflow on: - pull_request: - branches: - - main + # pull_request: + # branches: + # - main workflow_dispatch: defaults: diff --git a/.github/workflows/workflow-schema-deploy.yml b/.github/workflows/workflow-schema-deploy.yml new file mode 100644 index 00000000..76a6882a --- /dev/null +++ b/.github/workflows/workflow-schema-deploy.yml @@ -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 }}