git clone [email protected]:runely/update-renovate-config.git
npm i
- Create a
renovate_preset.json
file or renamerenovate_preset_example.json
, containing your newrenovate
config to be used in all your repos - Create a personal access token with
repo scope
- Create a
.env
file:GITHUB_USERNAME=<GitHub username where personal-access-token is created> GITHUB_PERSONAL_ACCESS_TOKEN=<personal-access-token> GITHUB_REPO_USERNAME=<Add this line to fetch repos from this user> GITHUB_REPO_ORGNAME=<Add this line to fetch repos from this organization> RENOVATE_CONFIG=<Full path to renovate_preset.json file> RENOVATE_COMMIT_MESSAGE=<Your own commit message. If set to empty or removed, a default commit message will be used>
Make sure GITHUB_USERNAME
has read/write access to both GITHUB_REPO_USERNAME
and GITHUB_REPO_ORGNAME
!
If both GITHUB_REPO_USERNAME
and GITHUB_REPO_ORGNAME
are set, GITHUB_REPO_ORGNAME
will be used!
- Run
npm run get-repos
to create arepos.json
file in thedata
folder containing an array of all your repos - Run
npm run get-renovate-repos
to find which repos actually use renovate - Run
npm run clone-repos
to clone down a fresh copy of all repos. They will be saved in./repos
folder - Run
npm run update-repos
to updaterenovate
config in all repos
❗ This tool will only modify and commit to a repository if:
- It's not archived
- It already has a
renovate.json
file renovate.json
file is different fromrenovate_preset.json
setup earlier