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

[NFC] Github action script to run regen.sh for you #20680

Merged
merged 1 commit into from
Jun 21, 2021

Conversation

demeritcowboy
Copy link
Contributor

@demeritcowboy demeritcowboy commented Jun 21, 2021

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

@civibot
Copy link

civibot bot commented Jun 21, 2021

(Standard links)

@colemanw
Copy link
Member

Tested this and it's totally awesome 💯

@colemanw colemanw merged commit 57e15c8 into civicrm:master Jun 21, 2021
@demeritcowboy demeritcowboy deleted the regen-github-action branch June 21, 2021 12:48
@demeritcowboy
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants