summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-01-19 21:59:53 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-01-19 21:59:53 +0100
commitb2d329da218b86a5a497c5cfad3944c4f632f026 (patch)
treee3522b4b839152ec96ceee4d849afecd552130d4
parent601d527cee80b8cbeb296e2bf4c9dc78adc5578e (diff)
downloadlow-puszcza-b2d329da218b86a5a497c5cfad3944c4f632f026.tar.gz
low-puszcza-b2d329da218b86a5a497c5cfad3944c4f632f026.zip
Join workflows
-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: