gr2m / helpdesk

Answering all your GitHub API/automation questions live on Twitch
https://twitch.tv/gregorcodes
Creative Commons Zero v1.0 Universal
22 stars 11 forks source link

πŸ“… 6/10 @ 1pm PT - How to update lock files silently (Part II) #24

Closed gr2m closed 3 years ago

gr2m commented 3 years ago

πŸ’πŸ» How to update lock files silently (Part II) πŸ“… Thursday, June 10, 2021 πŸ• 1:00pm Pacific Time (in your timezone) πŸŽ™οΈ no guests 🏷️ Automation


Subscribe to this issues to get a notification before the show begins and a summary after the show concludes.

How to update lock files silently (Part II)

This show is a follow up to https://github.com/gr2m/helpdesk/issues/22.

In the first episode, we established the problem space we are trying to solve and created a GitHub Action workflow that updates the package-lock.json file on a schedule and pushes it to a lockfile-update branch.

Next, we want to run a workflow whenever CI completed on the lockfile-update branch. If all checks are green, merge it into the repositories default branch and delete the lockfile-update branch. If it fails, create a pull-request to notify the maintainers that their CI broke because of in-range file updates.

Stretch goal will be to be more smart about updates. If there are any pull requests that will conflict with an update to package-lock.json, do not update the repository's default branch. Unless it's a weekly run when we want to enforce an update either way.

Outline

Preparation

Recording

image

Shownotes

gr2m commented 3 years ago

recording is now on Twitch: https://www.twitch.tv/videos/1052213859

gr2m commented 3 years ago

recording is now live on YouTube: https://youtu.be/LKCrofYOf9A