about summary refs log tree commit diff
path: root/.github/workflows
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-10-07 17:22:39 -0700
committerFranck Cuny <franck@fcuny.net>2022-10-07 17:22:39 -0700
commitfa55167f13a086d0f8fcc4dba7ab51efc6306c75 (patch)
tree5f08584b4ee745f6ff27446af6cf730ea5626838 /.github/workflows
parentfix(flake): set the correct path for various pre-commit binaries (diff)
downloadworld-fa55167f13a086d0f8fcc4dba7ab51efc6306c75.tar.gz
ci: add GitHub action to update flakes and dependabot
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/update.yaml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/update.yaml b/.github/workflows/update.yaml
new file mode 100644
index 0000000..7da6c2a
--- /dev/null
+++ b/.github/workflows/update.yaml
@@ -0,0 +1,22 @@
+name: update-flake-lock
+on:
+  workflow_dispatch:
+  schedule:
+    - cron: '0 6 * * *'
+
+jobs:
+  update-flake-lock:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout repository
+        uses: actions/checkout@v3
+      - name: Install Nix
+        uses: cachix/install-nix-action@v17
+        with:
+          extra_nix_config: |
+            access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
+      - name: Update flake.lock
+        id: update-flake-lock
+        uses: DeterminateSystems/update-flake-lock@v14
+        with:
+          token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}