-
Notifications
You must be signed in to change notification settings - Fork 87
CLDR-18999 Allow the build script to push changes into the repo #95
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
base: main
Are you sure you want to change the base?
Conversation
2a1201d to
26c07f0
Compare
| git config --global user.name "GitHub Actions" | ||
| git config --global user.email "[email protected]" | ||
| git add cldr-json | ||
| git commit --verbose -F - < (echo "Automated update; echo; cat ../cldr-identity.txt") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line isn't quite right, too many levels of quotes. it will result in a commit message Automated update; echo; cat..
I think the first line could give a little more details as well.
Probably instead something like
( echo ... ) | git commit ... -F -
srl295
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should NOT be run nightly. There's no reason to make nightly changes to the repo here.
Perhaps instead it could draft a PR or update a branch.
icu4x needs the .zip file, so a nightly run that generates a .zip might be OK (as a build artifact)
|
|
||
| # override the version number of CLDR | ||
| #VERSION="39.0.0" | ||
| VERSION="49.0.0-dev" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please revert this. it's calculated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| VERSION="49.0.0-dev" | |
| #VERSION="39.0.0" |
| echo "VERSION is undefined, exiting from $0" | ||
| exit 1 | ||
| fi | ||
| VERSION="$(jq -r .version cldr-json/cldr-core/package.json)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea
Behind a flag.
This could run nightly.