Skip to content

Reimplement checkChanges.js in Lean with typed input validation#232

Merged
Seasawher merged 9 commits into
mainfrom
dev
Jun 16, 2026
Merged

Reimplement checkChanges.js in Lean with typed input validation#232
Seasawher merged 9 commits into
mainfrom
dev

Conversation

@Seasawher

@Seasawher Seasawher commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

This PR replaces the old scripts/checkChanges.js helper with a Lean implementation exposed as:

lake exe leanUpdate checkChanges

The check now lives in LeanUpdate.CheckChanges, alongside the rest of the action logic.

Changes

  • Remove scripts/checkChanges.js
  • Add a Lean checkChanges command that checks whether lean-toolchain or lake-manifest.json changed
  • Add typed parsing for the update_if_modified input via UpdateIfModified
  • Write internal action state through GITHUB_ENV as LEAN_UPDATE_* values
  • Update action.yml to consume those environment values instead of the removed JS step outputs

Notes

Moving this logic into Lean means UPDATE_IF_MODIFIED is now parsed and validated by the same input handling layer as the other action inputs. Invalid values are rejected before the update decision is made.

this commit is generated by Codex and has a lot of issues.
Do not merge this commit without carefully reviewing.
…ing handler

this is a fix for the recent codex-generated commit.
…e outputs of a step

This commit is generated by codex agent.
Please review this changes carefully before merging.
@Seasawher Seasawher changed the title dev PR Reimplement checkChanges.js in Lean with typed input validation Jun 15, 2026
resolve #233

This is caused by the environment variable `LATEST_LEAN` is only set when the lake project does not have dependencies.
The action see empty `LATEST_LEAN` when the project has dependencies.
@Seasawher Seasawher linked an issue Jun 16, 2026 that may be closed by this pull request
@Seasawher Seasawher marked this pull request as ready for review June 16, 2026 14:45
@Seasawher Seasawher merged commit b4fbb58 into main Jun 16, 2026
7 checks passed
@Seasawher Seasawher deleted the dev branch June 16, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

empty lean-toolchain content is shown

1 participant