-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update to use models-lib generator (#23)
- Loading branch information
1 parent
967f655
commit b4df957
Showing
1 changed file
with
19 additions
and
11 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,23 +14,30 @@ jobs: | |
uses: actions/checkout@v2 | ||
with: | ||
ref: master | ||
path: OpenActive.NET | ||
|
||
- name: Setup Node.js 12.x | ||
- name: Checkout models-lib | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: openactive/models-lib | ||
path: models-lib | ||
|
||
- name: Setup Node.js 14.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
- name: Install OpenActive.NET.Generator | ||
node-version: 14.x | ||
|
||
- name: Install models-lib | ||
run: npm install | ||
working-directory: OpenActive.NET.Generator | ||
- name: Update OpenActive.NET.Generator | ||
working-directory: models-lib | ||
|
||
- name: Update models-lib with latest data-models | ||
run: npm update @openactive/data-models | ||
working-directory: OpenActive.NET.Generator | ||
working-directory: models-lib | ||
|
||
- name: Run OpenActive.NET.Generator | ||
run: npm start | ||
working-directory: OpenActive.NET.Generator | ||
- name: Run .NET models generator | ||
run: npm start -- generate .NET --destination ../OpenActive.NET/OpenActive.NET/ | ||
working-directory: models-lib | ||
|
||
- name: Restore OpenActive.NET/models/SportsActivityLocation.cs (Gladstone workaround) | ||
run: git checkout OpenActive.NET/models/SportsActivityLocation.cs | ||
|
@@ -39,6 +46,7 @@ jobs: | |
id: cpr | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
path: OpenActive.NET | ||
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }} | ||
commit-message: Update data models | ||
committer: openactive-bot <[email protected]> | ||
|