[PR #2479] [MERGED] feat: auto-update nixpkgs on release #5665

Closed
opened 2026-04-16 13:47:50 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/2479
Author: @kolaente
Created: 3/25/2026
Status: Merged
Merged: 3/25/2026
Merged by: @kolaente

Base: mainHead: claude/nixpkgs-release-automation-ciTuI


📝 Commits (1)

  • bb6adff feat: add CI workflow to auto-update nixpkgs on release

📊 Changes

1 file changed (+79 additions, -0 deletions)

View changed files

.github/workflows/nixpkgs-update.yml (+79 -0)

📄 Description

Summary

  • Adds a new GitHub Actions workflow (.github/workflows/nixpkgs-update.yml) that automatically opens a PR against NixOS/nixpkgs when a Vikunja release is published
  • Runs the existing update.sh for the vikunja package (recomputes source, pnpm, and Go vendor hashes via nurl)
  • Uses nix-update for the vikunja-desktop package
  • Creates one PR with two separate commits (one per package)
  • Includes workflow_dispatch trigger for manual testing

How it works

  1. Triggers on release: published (after the draft is manually promoted)
  2. Clones the go-vikunja/nixpkgs fork, branches off upstream/master
  3. Runs pkgs/by-name/vi/vikunja/update.sh with the released version
  4. Commits vikunja changes
  5. Runs nix-update vikunja-desktop for the desktop package
  6. Commits vikunja-desktop changes
  7. Pushes to the fork and opens a PR against NixOS/nixpkgs

Prerequisites

  • go-vikunja/nixpkgs fork (already exists)
  • NIXPKGS_TOKEN repository secret: a PAT with push access to the fork and PR creation permissions on NixOS/nixpkgs

Test plan

  • Add NIXPKGS_TOKEN secret to the repository
  • Test via workflow_dispatch with a known version
  • Verify PR is created on NixOS/nixpkgs with correct version bump and valid hashes
  • Verify idempotency: re-running skips PR creation if one already exists

https://claude.ai/code/session_01DNS3twktAxJ4T4mfZzg28R


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-vikunja/vikunja/pull/2479 **Author:** [@kolaente](https://github.com/kolaente) **Created:** 3/25/2026 **Status:** ✅ Merged **Merged:** 3/25/2026 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `claude/nixpkgs-release-automation-ciTuI` --- ### 📝 Commits (1) - [`bb6adff`](https://github.com/go-vikunja/vikunja/commit/bb6adff876ebc2f58fd7460f1bfcfa8120cb2605) feat: add CI workflow to auto-update nixpkgs on release ### 📊 Changes **1 file changed** (+79 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/nixpkgs-update.yml` (+79 -0) </details> ### 📄 Description ## Summary - Adds a new GitHub Actions workflow (`.github/workflows/nixpkgs-update.yml`) that automatically opens a PR against `NixOS/nixpkgs` when a Vikunja release is published - Runs the existing `update.sh` for the `vikunja` package (recomputes source, pnpm, and Go vendor hashes via `nurl`) - Uses `nix-update` for the `vikunja-desktop` package - Creates one PR with two separate commits (one per package) - Includes `workflow_dispatch` trigger for manual testing ## How it works 1. Triggers on `release: published` (after the draft is manually promoted) 2. Clones the `go-vikunja/nixpkgs` fork, branches off `upstream/master` 3. Runs `pkgs/by-name/vi/vikunja/update.sh` with the released version 4. Commits vikunja changes 5. Runs `nix-update vikunja-desktop` for the desktop package 6. Commits vikunja-desktop changes 7. Pushes to the fork and opens a PR against `NixOS/nixpkgs` ## Prerequisites - `go-vikunja/nixpkgs` fork (already exists) - `NIXPKGS_TOKEN` repository secret: a PAT with push access to the fork and PR creation permissions on `NixOS/nixpkgs` ## Test plan - [ ] Add `NIXPKGS_TOKEN` secret to the repository - [ ] Test via `workflow_dispatch` with a known version - [ ] Verify PR is created on `NixOS/nixpkgs` with correct version bump and valid hashes - [ ] Verify idempotency: re-running skips PR creation if one already exists https://claude.ai/code/session_01DNS3twktAxJ4T4mfZzg28R --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 13:47:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#5665