From 3c9a69063fdfa1f41b04a9bbb71be715757e3e2b Mon Sep 17 00:00:00 2001
From: Andrea Ciceri <andrea.ciceri@autistici.org>
Date: Tue, 26 Mar 2024 14:04:56 +0100
Subject: [PATCH 1/2] [CI] Temporarily disable `update-flake-lock` job

---
 .forgejo/workflows/build.yaml             | 22 ++++----
 .forgejo/workflows/update-flake-lock.yaml | 68 +++++++++++------------
 2 files changed, 45 insertions(+), 45 deletions(-)

diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml
index 925cf06..4e6cdb6 100644
--- a/.forgejo/workflows/build.yaml
+++ b/.forgejo/workflows/build.yaml
@@ -1,11 +1,11 @@
-on:
-  push:
-    branches: ["*"]
-jobs:
-  test:
-    runs-on: nix
-    steps:
-      - uses: actions/checkout@v4
-        name: Checkout repository
-      - name: Build with nix
-        run: nix-fast-build --no-nom --systems "x86_64-linux aarch64-linux"
+# on:
+#   push:
+#     branches: ["*"]
+# jobs:
+#   test:
+#     runs-on: nix
+#     steps:
+#       - uses: actions/checkout@v4
+#         name: Checkout repository
+#       - name: Build with nix
+#         run: nix-fast-build --no-nom --systems "x86_64-linux aarch64-linux"
diff --git a/.forgejo/workflows/update-flake-lock.yaml b/.forgejo/workflows/update-flake-lock.yaml
index eadba29..fe4910a 100644
--- a/.forgejo/workflows/update-flake-lock.yaml
+++ b/.forgejo/workflows/update-flake-lock.yaml
@@ -1,35 +1,35 @@
-name: update-flake-lock
-on:
-  schedule:
-    - cron: '0 15 * * *' # daily at 15:00
+# name: update-flake-lock
+# on:
+#   schedule:
+#     - cron: '0 15 * * *' # daily at 15:00
 
-jobs:
-  lockfile:
-    runs-on: nix
-    steps:
-      - uses: actions/checkout@v4
-        name: Checkout repository
-        with:
-          token: ${{secrets.SEVENOFNINE_TOKEN}}
-      - name: Create new branch from the checked out one
-        run: git switch -c update-flake-lock
-      - name: Configure git as `Seven of Nix`
-        run: |
-          git config --global user.email "sevenofnine@stronzi.org"
-          git config --global user.name "Seven of Nine"
-      - name: Update flake's lockfile and create commit
-        run: nix flake update --commit-lock-file
-      - name: Push commit to the `update-flake-lock` remote branch
-        run: git push origin --force update-flake-lock # sevenOfNix needs write access to the repository
-      - name: Login as `Seven of Nix`
-        run: |
-          tea logins add --token ${{secrets.SEVENOFNINE_TOKEN}} --url https://git.aciceri.dev
-          tea logins default git.aciceri.dev
-      - name: Create the pull request
-        run: |
-          tea pulls create \
-            --repo "$GITHUB_REPOSITORY" \
-            --title "Update flake's lockfile" \
-            --description "Check the commit description for inputs deltas" \
-            --assignees aciceri \
-            || echo "PR already existing" 
+# jobs:
+#   lockfile:
+#     runs-on: nix
+#     steps:
+#       - uses: actions/checkout@v4
+#         name: Checkout repository
+#         with:
+#           token: ${{secrets.SEVENOFNINE_TOKEN}}
+#       - name: Create new branch from the checked out one
+#         run: git switch -c update-flake-lock
+#       - name: Configure git as `Seven of Nix`
+#         run: |
+#           git config --global user.email "sevenofnine@stronzi.org"
+#           git config --global user.name "Seven of Nine"
+#       - name: Update flake's lockfile and create commit
+#         run: nix flake update --commit-lock-file
+#       - name: Push commit to the `update-flake-lock` remote branch
+#         run: git push origin --force update-flake-lock # sevenOfNix needs write access to the repository
+#       - name: Login as `Seven of Nix`
+#         run: |
+#           tea logins add --token ${{secrets.SEVENOFNINE_TOKEN}} --url https://git.aciceri.dev
+#           tea logins default git.aciceri.dev
+#       - name: Create the pull request
+#         run: |
+#           tea pulls create \
+#             --repo "$GITHUB_REPOSITORY" \
+#             --title "Update flake's lockfile" \
+#             --description "Check the commit description for inputs deltas" \
+#             --assignees aciceri \
+#             || echo "PR already existing" 

From 3e1ee94dc96a08378c42bcd29572f0d64bdc1702 Mon Sep 17 00:00:00 2001
From: Andrea Ciceri <andrea.ciceri@autistici.org>
Date: Tue, 26 Mar 2024 15:28:34 +0100
Subject: [PATCH 2/2] [CI] Re-enable jobs

---
 .forgejo/workflows/build.yaml             | 22 ++++----
 .forgejo/workflows/update-flake-lock.yaml | 67 +++++++++++------------
 2 files changed, 44 insertions(+), 45 deletions(-)

diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml
index 4e6cdb6..925cf06 100644
--- a/.forgejo/workflows/build.yaml
+++ b/.forgejo/workflows/build.yaml
@@ -1,11 +1,11 @@
-# on:
-#   push:
-#     branches: ["*"]
-# jobs:
-#   test:
-#     runs-on: nix
-#     steps:
-#       - uses: actions/checkout@v4
-#         name: Checkout repository
-#       - name: Build with nix
-#         run: nix-fast-build --no-nom --systems "x86_64-linux aarch64-linux"
+on:
+  push:
+    branches: ["*"]
+jobs:
+  test:
+    runs-on: nix
+    steps:
+      - uses: actions/checkout@v4
+        name: Checkout repository
+      - name: Build with nix
+        run: nix-fast-build --no-nom --systems "x86_64-linux aarch64-linux"
diff --git a/.forgejo/workflows/update-flake-lock.yaml b/.forgejo/workflows/update-flake-lock.yaml
index fe4910a..c19d185 100644
--- a/.forgejo/workflows/update-flake-lock.yaml
+++ b/.forgejo/workflows/update-flake-lock.yaml
@@ -1,35 +1,34 @@
-# name: update-flake-lock
-# on:
-#   schedule:
-#     - cron: '0 15 * * *' # daily at 15:00
+name: update-flake-lock
+on:
+  schedule:
+    - cron: '0 15 * * *' # daily at 15:00
 
-# jobs:
-#   lockfile:
-#     runs-on: nix
-#     steps:
-#       - uses: actions/checkout@v4
-#         name: Checkout repository
-#         with:
-#           token: ${{secrets.SEVENOFNINE_TOKEN}}
-#       - name: Create new branch from the checked out one
-#         run: git switch -c update-flake-lock
-#       - name: Configure git as `Seven of Nix`
-#         run: |
-#           git config --global user.email "sevenofnine@stronzi.org"
-#           git config --global user.name "Seven of Nine"
-#       - name: Update flake's lockfile and create commit
-#         run: nix flake update --commit-lock-file
-#       - name: Push commit to the `update-flake-lock` remote branch
-#         run: git push origin --force update-flake-lock # sevenOfNix needs write access to the repository
-#       - name: Login as `Seven of Nix`
-#         run: |
-#           tea logins add --token ${{secrets.SEVENOFNINE_TOKEN}} --url https://git.aciceri.dev
-#           tea logins default git.aciceri.dev
-#       - name: Create the pull request
-#         run: |
-#           tea pulls create \
-#             --repo "$GITHUB_REPOSITORY" \
-#             --title "Update flake's lockfile" \
-#             --description "Check the commit description for inputs deltas" \
-#             --assignees aciceri \
-#             || echo "PR already existing" 
+jobs:
+  lockfile:
+    runs-on: nix
+    steps:
+      - uses: actions/checkout@v4
+        name: Checkout repository
+        with:
+          token: ${{secrets.SEVENOFNINE_TOKEN}}
+      - name: Create new branch from the checked out one
+        run: git switch -c update-flake-lock
+      - name: Configure git as `Seven of Nix`
+        run: |
+          git config --global user.email "sevenofnine@stronzi.org"
+          git config --global user.name "Seven of Nine"
+      - name: Update flake's lockfile and create commit
+        run: nix flake update --commit-lock-file#       - name: Push commit to the `update-flake-lock` remote branch
+        run: git push origin --force update-flake-lock # sevenOfNix needs write access to the repository
+      - name: Login as `Seven of Nix`
+        run: |
+          tea logins add --token ${{secrets.SEVENOFNINE_TOKEN}} --url https://git.aciceri.dev
+          tea logins default git.aciceri.dev
+      - name: Create the pull request
+        run: |
+          tea pulls create \
+            --repo "$GITHUB_REPOSITORY" \
+            --title "Update flake's lockfile" \
+            --description "Check the commit description for inputs deltas" \
+            --assignees aciceri \
+            || echo "PR already existing"