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

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

Closed
1 of 7 tasks
gr2m opened this issue Jun 3, 2021 · 2 comments
Closed
1 of 7 tasks
Labels
show Preparation issue for a live show

Comments

@gr2m
Copy link
Owner

gr2m commented Jun 3, 2021

πŸ’πŸ» 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 #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

  • Run a GitHub Action workflow when we create or update the lockfile-update branch from the update workflow
  • Run a GitHub Action workflow each time commit status and check runs are set on a commit in the lockfile-update branch. Determine whether the status is green based on the branch protection settings.
  • If any check failed, create a pull request. If all required checks are green, merge and delete the lockfile-update branch.

Preparation

  • 30 minute announcement tweet
  • start of show tweet
  • comment on issue
  • recording available tweet

Recording

image

Shownotes

  • run a GitHub Action whenever a status was set or a check run completed on a lockfile-update branch commit
@gr2m gr2m added the show Preparation issue for a live show label Jun 3, 2021
@gr2m

This comment has been minimized.

@gr2m
Copy link
Owner Author

gr2m commented Jun 11, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
show Preparation issue for a live show
Projects
None yet
Development

No branches or pull requests

1 participant