Skip to content

Conversation

@qcdyx
Copy link
Contributor

@qcdyx qcdyx commented Dec 23, 2025

Tested locally using git diff --name-only against simulated PR diffs, and end-to-end by merging test-release PR into 187-automatically-create-new-release-each-time-a-json-schema-change-is-merged. Verified that releases are created when new root-level vX.X folders are added or when existing vX.X schemas change, and not created for non-schema changes.

image

p.s. I already deleted Release 4.1.0, should have used pre-release.

@qcdyx qcdyx linked an issue Dec 23, 2025 that may be closed by this pull request
name: Auto Release on Schema Changes

on:
pull_request:
Copy link
Contributor

@jcpitre jcpitre Dec 23, 2025

Choose a reason for hiding this comment

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

Did you consider using a push to master trigger instead?
See this as an example
One advantage is that you can restrict the trigger only to changes in specified folders.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes — using a push trigger with paths would work, but I opted for a pull_request: closed trigger to ensure releases only happen after an explicit PR merge and to avoid accidental releases from direct pushes.

@qcdyx qcdyx merged commit b290b4c into master Dec 24, 2025
1 check passed
@qcdyx qcdyx deleted the 187-automatically-create-new-release-each-time-a-json-schema-change-is-merged branch December 24, 2025 15:25
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.

Automatically create new release each time a JSON schema change is merged

3 participants