-
Notifications
You must be signed in to change notification settings - Fork 110
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
Add script and GitHub action to automatically update templated packages. #335
Conversation
@lest, you will need to create new GitHub token with access to When token is created, you will need to add |
I like the idea of automatically checking for new versions and creating pull requests. I'll create a separate GitHub bot account to use its personal token instead of mine. |
@p37ruh4 Is it possible to use a token from a separate GitHub bot account or is it required to use my personal token? I'm not sure if the script supports it being a token from a separate account so it can open pull requests from |
It should be possible to use any account, it might be required to add that bot account some additional permissions on
|
@lest, have you had any success creating bot account and token? |
I created a bot account and added its token to secrets. However, I haven't tested how it works yet. I'll try to do as soon as possible. |
Any update on this? We've got a few of the major packages (prometheus, node_exporter) that are awaiting updates. |
I will merge this as this cannot break anything and worst case scenario is we will have workflow that doesn't work and can be disabled by adjusting crontab. |
I'll try to figure it out tomorrow on forked repository, it appears to be creating PRs in wrong repo: https://github.com/karlism/prometheus-rpm/pull/1 |
I think I've fixed the script, but now action fails as bot account does not have permissions to create new branches in this repository. |
@karlism done! sorry for the late response and thanks a lot for improving the script. |
@lest, thanks, appears to be working properly now: https://github.com/lest/prometheus-rpm/actions/runs/632452522 created #341 |
Add script and GitHub action to automatically update package versions to latest releases in
templating.yaml
file.Sample output of the script:
Workflow is configured to run twice per day.