-
Notifications
You must be signed in to change notification settings - Fork 2k
feat: Add auto-pr cron job #1314
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,27 @@ | ||||||
name: Auto PR for new versions | ||||||
|
||||||
on: | ||||||
schedule: | ||||||
- cron: 0 0 * * * | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Every hour instead of every day? Otherwise I assume people will be posting issues wondering when the next release will be available if it's potentially 23 hours delayed. Could run it event more often of course, not like it takes a lot of resources/time There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @nschonni I still think this makes sense, fwiw There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think every hour is better 👍 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. or even more often - any issue running this every 10 minutes? |
||||||
|
||||||
jobs: | ||||||
update: | ||||||
strategy: | ||||||
matrix: | ||||||
version: | ||||||
- 10 | ||||||
- 12 | ||||||
- 14 | ||||||
Comment on lines
+11
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this will create 3 PRs if there are updates for all release lines, right? Should we instead just do There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I am interested in fixing update.sh or even perhaps porting it to a node script, if that is desired. It could be made more useful like returning what node versions it updated, etc. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. migrating to a js script makes sense to me. As a temporary workaround, the script could run with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What should happen if there is a keys update (like there was a few days ago). Should any images be updated if there are no node updates? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point, it should only create a PR if the Node version line changes. Key changes should only go in with a version bump There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Alright, I'll add some logic to grab the keys in the existing files to replay them on the templates, unless the node version changes. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can probably just try looking at the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There might be bug fixes and such, so I think it's better to say that
only triggers an update if the node version changes - all other changes than those two should always trigger |
||||||
runs-on: ubuntu-latest | ||||||
steps: | ||||||
- name: Update Docker images | ||||||
uses: technote-space/create-pr-action@v2 | ||||||
with: | ||||||
EXECUTE_COMMANDS: | | ||||||
./update.sh ${{ matrix.version }} | ||||||
COMMIT_MESSAGE: 'chore: update ${{ matrix.version }}' | ||||||
COMMIT_NAME: 'Node.js GitHub Bot' | ||||||
COMMIT_EMAIL: 'github-bot@iojs.org' | ||||||
PR_BRANCH_NAME: 'chore-update-${{ matrix.version }}' | ||||||
PR_TITLE: 'chore: update ${{ matrix.version }}' | ||||||
nschonni marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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.
add a comment about what this means so I don't have to use https://crontab.guru/?