summary refs log tree commit diff
path: root/.github/workflows/deploy.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/deploy.yml')
-rw-r--r--.github/workflows/deploy.yml16
1 files changed, 16 insertions, 0 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