stylix icon indicating copy to clipboard operation
stylix copied to clipboard

ci: add Nix Flake Update GitHub workflow to keep flake inputs updated

Open trueNAHO opened this issue 1 year ago • 2 comments

This change requires GitHub workflows to have read and write permissions 1 2.

This PR is stacked on top of the pending patchset https://github.com/danth/stylix/pull/519 ("treewide: add developer shell and pre-commit hooks and simplify GitHub workflows") and should only be merged after it. Although ready for review, this PR will remain in Draft status until patchset "treewide: add developer shell and pre-commit hooks and simplify GitHub workflows" is merged.

NAHO (1):
  ci: add Nix Flake Update GitHub workflow to keep flake inputs updated

 .github/workflows/nix_flake_update.yml | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 .github/workflows/nix_flake_update.yml

trueNAHO avatar Aug 22 '24 21:08 trueNAHO

From 29d97f487312d3b56c4dd3da40cb43af858a02d4 Mon Sep 17 00:00:00 2001
From: NAHO <[email protected]>
Date: Thu, 22 Aug 2024 23:07:22 +0200
Subject: [PATCH] ci: add Nix Flake Update GitHub workflow to keep flake
 inputs updated

This change requires GitHub workflows to have read and write permissions
[1] [2].

[1]: https://github.com/DeterminateSystems/update-flake-lock/issues/75
[2]: https://github.com/DeterminateSystems/update-flake-lock/issues/88

Link: https://github.com/danth/stylix/pull/520
---
 .github/workflows/nix_flake_update.yml | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 .github/workflows/nix_flake_update.yml

diff --git a/.github/workflows/nix_flake_update.yml b/.github/workflows/nix_flake_update.yml
new file mode 100644
index 00000000..74c285d0
--- /dev/null
+++ b/.github/workflows/nix_flake_update.yml
@@ -0,0 +1,26 @@
+---
+name: Nix Flake Update
+
+on:  # yamllint disable-line rule:truthy
+  workflow_dispatch:
+
+  schedule:
+    - cron: "0 0 1 * *"
+
+jobs:
+  nix-flake-update:
+    runs-on: ubuntu-22.04
+
+    permissions:
+      contents: write
+      pull-requests: write
+
+    steps:
+      - uses: actions/checkout@v4
+      - uses: DeterminateSystems/nix-installer-action@v13
+      - uses: DeterminateSystems/magic-nix-cache-action@v6
+
+      - uses: DeterminateSystems/update-flake-lock@v23
+        with:
+          pr-labels: dependencies
+          pr-title: "stylix: update all flake inputs"

Bump dependencies:

  • magic-nix-cache-action: v6 -> v8
  • nix-installer-action: v13 -> v14
  • update-flake-lock: v23 -> v24

trueNAHO avatar Sep 10 '24 16:09 trueNAHO

Changelog

v1: https://github.com/danth/stylix/commit/706c8ef280b4013b1ddc122e2dd026ff23c395e0

  • Bump magic-nix-cache-action GitHub Action: v6 -> v8
  • Bump nix-installer-action GitHub Action: v13 -> v14
  • Bump update-flake-lock GitHub Action: v23 -> v24
  • Rebase on top of commit ef81ad9e85e6 ("gnome: move gnome-shell overlay out of gnome scope (#541)") because GitHub does not understand stacked PRs...

v0: https://github.com/danth/stylix/commit/29d97f487312d3b56c4dd3da40cb43af858a02d4

trueNAHO avatar Sep 11 '24 15:09 trueNAHO

Changelog

v2: https://github.com/danth/stylix/commit/4be09d09ae00149fcde0f7511b8418f272017cda

  • Bump nix-installer-action GitHub Action: v14 -> v16

v1: https://github.com/danth/stylix/commit/706c8ef280b4013b1ddc122e2dd026ff23c395e0

  • Bump magic-nix-cache-action GitHub Action: v6 -> v8
  • Bump nix-installer-action GitHub Action: v13 -> v14
  • Bump update-flake-lock GitHub Action: v23 -> v24
  • Rebase on top of commit ef81ad9e85e6 ("gnome: move gnome-shell overlay out of gnome scope (#541)") because GitHub does not understand stacked PRs...

v0: https://github.com/danth/stylix/commit/29d97f487312d3b56c4dd3da40cb43af858a02d4

trueNAHO avatar Nov 26 '24 07:11 trueNAHO

This PR is stacked on top of the pending patchset https://github.com/danth/stylix/pull/519 ("treewide: add developer shell and pre-commit hooks and simplify GitHub workflows") and should only be merged after it. Although ready for review, this PR will remain in Draft status until patchset "treewide: add developer shell and pre-commit hooks and simplify GitHub workflows" is merged.

Considering that https://github.com/danth/stylix/pull/519 is taking longer than expected to get merged, we might want to already merge this PR. Consequently, I moved this PR out of draft mode.

trueNAHO avatar Nov 26 '24 07:11 trueNAHO

@trueNAHO @danth It would be good if we could get some motion on this

0xda157 avatar Apr 02 '25 21:04 0xda157

It would be good if we could get some motion on this

Yes, it would be great for this to get merged. However, since I have no experience with the GitHub Apps I have not had the motivation to work on it and it would be great if someone with more experience in them could pick up this PR.

trueNAHO avatar Apr 04 '25 09:04 trueNAHO

Yes, it would be great for this to get merged. However, since I have no experience with the GitHub Apps I have not had the motivation to work on it and it would be great if someone with more experience in them could pick up this PR.

I'll probably make a pr to supersede this soon

0xda157 avatar Apr 05 '25 18:04 0xda157

Closing in favor of #1100 :))

danth avatar Apr 05 '25 19:04 danth