[NFC] Github action script to run regen.sh for you #20680
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
You can use this in your civicrm-core fork to run regen for free "in the cloud" since it's often difficult to run locally. You can either choose to download the resulting civicrm_generated file or have it push a commit to your branch.
See instructions inside the script but note the extra step needed for testing the PR in the technical details below.
Before
Hard to run locally.
After
2-3 minutes, nothing accidentally trashed on your computer
Technical Details
This requires an extra step to test until it's merged because you need to have a copy of the workflow script itself in master in your fork not the branch or you won't see the dropdown in github. But you can manually put it into your fork's master to test, and then
reset --hard
your fork's master after.Another way to test is if you make a branch out of this PR in your fork and then temporarily change the default branch in your fork, under repository settings - branches. Then github will show the dropdown.
Comments
@colemanw