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

Automatically run renovate on a schedule #366

Merged
merged 6 commits into from
Jan 7, 2025
Merged

Automatically run renovate on a schedule #366

merged 6 commits into from
Jan 7, 2025

Conversation

joecorall
Copy link
Contributor

@joecorall joecorall commented Jan 4, 2025

I created a GitHub app to allow us to run renovate on this repo in GitHub Actions. "Creating an app" sounds a little deceiving. There's no code involved in creating a GitHub app. The creation is all driven through the GitHub UI. A private key associated to that app allows you to interact with the GitHub REST API as that app.

I tested the token works properly by running the script in this PR locally (./ci/fetch-app-token.sh app-id install-id privkey.pem) and set that token as RENOVATE_TOKEN. It created the PR #367

@joecorall joecorall marked this pull request as draft January 5, 2025 13:18
@joecorall joecorall marked this pull request as ready for review January 6, 2025 14:53
@joecorall joecorall requested a review from nigelgbanks January 6, 2025 15:24
@joecorall
Copy link
Contributor Author

joecorall commented Jan 6, 2025

huh I just noticed https://github.com/actions/create-github-app-token 🤔

UPDATE/EDIT:

On second thought, I tend to try to make any GitHub Action as reproducible as possible on my local machine to avoid getting into traps like needing to push to GitHub to test things in GitHub Actions. Though it's tempting to replace the bash script with the community supported GHA, I think I prefer the PR as is.

@nigelgbanks nigelgbanks merged commit e0b4a3d into main Jan 7, 2025
77 checks passed
@nigelgbanks nigelgbanks deleted the renovate-cron branch January 7, 2025 18:15
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.

2 participants