Merge pull request #314 from CenterForDigitalHumanities/306-search-pa… #13
This file contains hidden or 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: Sync RERUM core provider contract | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - openapi/contracts/core-provider.openapi.yaml | |
| - routes/** | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| sync: | |
| name: Sync RERUM core provider contract | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout rerum_server_nodejs | |
| uses: actions/checkout@v4 | |
| - name: Checkout receiver repository | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: cubap/rerum_openapi | |
| ref: main | |
| token: ${{ secrets.OPENAPI }} | |
| path: receiver | |
| - name: Verify receiver stub exists | |
| run: test -f receiver/seams/tinynode-to-rerum/openapi/baseline.openapi.yaml | |
| - name: Copy canonical provider contract | |
| run: cp openapi/contracts/core-provider.openapi.yaml receiver/seams/tinynode-to-rerum/openapi/baseline.openapi.yaml | |
| - name: Create or update sync pull request | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| token: ${{ secrets.OPENAPI }} | |
| path: receiver | |
| add-paths: seams/tinynode-to-rerum/openapi/baseline.openapi.yaml | |
| commit-message: "chore: sync RERUM core provider contract" | |
| branch: sync/rerum-core-provider-contract | |
| base: main | |
| delete-branch: true | |
| title: "chore: sync RERUM core provider contract" | |
| body: | | |
| Syncs the canonical RERUM core provider contract from CenterForDigitalHumanities/rerum_server_nodejs. | |
| - Source commit: ${{ github.sha }} | |
| - Source artifact: `openapi/contracts/core-provider.openapi.yaml` | |
| - Target artifact: `seams/tinynode-to-rerum/openapi/baseline.openapi.yaml` |