Skip to content

Commit

Permalink
fix: CI generator (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickevansuk authored Mar 3, 2021
1 parent b4df957 commit bc894f0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/create-data-model-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,25 @@ jobs:

- name: Install models-lib
run: npm install
working-directory: models-lib
working-directory: ./models-lib/

- name: Update models-lib with latest data-models
run: npm update @openactive/data-models
working-directory: models-lib
working-directory: ./models-lib/

- name: Run .NET models generator
run: npm start -- generate .NET --destination ../OpenActive.NET/OpenActive.NET/
working-directory: models-lib
working-directory: ./models-lib/

- name: Restore OpenActive.NET/models/SportsActivityLocation.cs (Gladstone workaround)
run: git checkout OpenActive.NET/models/SportsActivityLocation.cs
working-directory: ./OpenActive.NET/

- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
path: OpenActive.NET
path: ./OpenActive.NET/
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
commit-message: Update data models
committer: openactive-bot <[email protected]>
Expand Down

0 comments on commit bc894f0

Please sign in to comment.