Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: run codegen twice #526

Merged
merged 1 commit into from
Oct 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node: [20]
node: [22]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -23,6 +23,8 @@ jobs:
node-version: ${{ matrix.node }}
- name: Generate stuff
run: cargo run --package mdsf-codegen
# A second run is needed until the readme generation is decoupled from the json-schema
- run: cargo run --package mdsf-codegen
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe something like this

Suggested change
- run: cargo run --package mdsf-codegen
- name: update readme (temporary hack)
run: cargo run --package mdsf-codegen

- name: Format stuff
run: npx prettier@latest --write schemas mdsf.json README.md && cargo run -- format README.md
- uses: EndBug/add-and-commit@v9
Expand Down
Loading