summary refs log tree commit diff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/deploy.yml16
-rw-r--r--.github/workflows/update.yml4
2 files changed, 19 insertions, 1 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 36af759..dbb1b83 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -3,6 +3,9 @@ on:
   push:
     branches:
       - master
+  repository_dispatch:
+    types: [update]
+
 jobs:
   build-and-deploy:
     runs-on: ubuntu-latest
@@ -26,6 +29,19 @@ jobs:
         name: pn
         signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
 
+    - name: update.sh
+      if: github.event.action == 'update'
+      run: |
+        nix-shell -p nix-prefetch-git --command './update.sh'
+    - name: Commit changes
+      if: github.event.action == 'update'
+      uses: EndBug/add-and-commit@v7
+      with:
+        author_name: github-actions[bot]
+        author_email: 41898282+github-actions[bot]@users.noreply.github.com
+        message: '[🤖] Update kronika.json'
+        add: 'kronika.json'
+
     - name: Building site
       run: |
         nix build
diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml
index 4e22e3a..5e3babc 100644
--- a/.github/workflows/update.yml
+++ b/.github/workflows/update.yml
@@ -1,6 +1,8 @@
 name: Update sha256
 
-on: [repository_dispatch]
+on:
+  repository_dispatch:
+    types: [update]
 
 jobs:
   update: