data-model-validator-update #95
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Data Model Dependencies | |
on: | |
workflow_dispatch: | |
repository_dispatch: | |
types: [data-models-update, data-model-validator-update, rpde-validator-update] | |
jobs: | |
generate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: master | |
path: openactive-test-suite | |
- name: Setup Node.js 18.17.1 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 18.17.1 | |
- name: Update openactive-integration-tests with latest data-models and validators | |
run: npm install @openactive/data-models@latest @openactive/data-model-validator@latest --save | |
working-directory: ./openactive-test-suite/packages/openactive-integration-tests/ | |
- name: Update openactive-broker-microservice with latest data-models and validators | |
run: npm install @openactive/data-models@latest @openactive/data-model-validator@latest @openactive/rpde-validator@latest --save | |
working-directory: ./openactive-test-suite/packages/openactive-broker-microservice/ | |
- name: Create Pull Request | |
id: cpr | |
uses: peter-evans/create-pull-request@v4 | |
with: | |
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }} | |
path: ./openactive-test-suite/ | |
commit-message: Update data model and data model validator dependencies | |
committer: openactive-bot <openactive-bot@users.noreply.github.com> | |
author: openactive-bot <openactive-bot@users.noreply.github.com> | |
signoff: false | |
branch: ci/update-data-models | |
delete-branch: true | |
title: 'Update data models' | |
body: | | |
Update the OpenActive Test Suite to the latest version of the [OpenActive Vocabulary](https://openactive.io/ns/) (codified by the [Data Models](https://github.com/openactive/data-models)), and the [Data Model Validator](https://github.com/openactive/data-model-validator). | |
labels: | | |
automated pr | |
draft: false | |
- name: Enable Pull Request Automerge | |
if: steps.cpr.outputs.pull-request-operation == 'created' | |
uses: peter-evans/enable-pull-request-automerge@v3 | |
with: | |
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }} | |
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }} | |
merge-method: squash | |
- name: Check outputs | |
run: | | |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | |
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" |