Skip to content

ci: add weekly flake.lock update workflow#491

Merged
michalrus merged 5 commits intomainfrom
ci/weekly-flake-lock-update
Apr 3, 2026
Merged

ci: add weekly flake.lock update workflow#491
michalrus merged 5 commits intomainfrom
ci/weekly-flake-lock-update

Conversation

@ginnun
Copy link
Copy Markdown
Collaborator

@ginnun ginnun commented Mar 23, 2026

Resolves #408

Summary

  • Add a scheduled GitHub Actions workflow that runs nix flake update every Sunday at 06:00 UTC and opens a PR with the updated flake.lock
  • Uses DeterminateSystems/update-flake-lock action
  • If a PR from the previous week is still open, it is updated in place (no duplicate PRs)

Required setup

A FLAKE_UPDATE_GITHUB_TOKEN repository secret should be configured with a PAT (or GitHub App token) that has contents:write and pull-requests:write scopes on this repository.

This is needed because pushes made with the default GITHUB_TOKEN do not trigger other workflows (GitHub's recursive prevention). Without this token, the workflow still works — a PR is created — but CI won't run on it automatically. In that case, close and reopen the PR to trigger CI manually.

Test plan

  • Add FLAKE_UPDATE_GITHUB_TOKEN secret to repository settings
  • Verify PR is created with updated flake.lock on Sunday 📆
  • Verify CI checks run on the PR

@ginnun ginnun self-assigned this Mar 23, 2026
@ginnun ginnun added the enhancement New feature or request label Mar 23, 2026
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Mar 23, 2026

Deploying blockfrost-platform with  Cloudflare Pages  Cloudflare Pages

Latest commit: 069f8ee
Status:⚡️  Build in progress...

View logs

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an automated maintenance workflow to keep the repository’s Nix flake.lock up-to-date by running a weekly scheduled update and opening/updating a PR with the changes.

Changes:

  • Introduces a scheduled GitHub Actions workflow that updates flake.lock weekly.
  • Uses DeterminateSystems actions to install Nix (for portability) and create/update the PR for lockfile changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ginnun ginnun force-pushed the ci/weekly-flake-lock-update branch from d36be23 to 5f3e76a Compare March 26, 2026 19:35
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vladimirvolek vladimirvolek self-requested a review April 2, 2026 13:14
Copy link
Copy Markdown
Member

@michalrus michalrus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Unfortunately we have to merge it to test from main. I'll do that.

@michalrus michalrus merged commit 3a632a7 into main Apr 3, 2026
8 of 10 checks passed
@michalrus michalrus deleted the ci/weekly-flake-lock-update branch April 3, 2026 00:12
@michalrus
Copy link
Copy Markdown
Member

And it worked! See the automatic:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update flake.lock every Sunday – automatic PR

4 participants