This is an automated email from the ASF dual-hosted git repository.

meonkeys pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fineract-chat-archive.git


The following commit(s) were added to refs/heads/main by this push:
     new 1d4c8a9  use latest & greatest workflow config
1d4c8a9 is described below

commit 1d4c8a972c571c904b5eb615f2396c05afa758ab
Author: Adam Monsen <[email protected]>
AuthorDate: Mon Feb 9 16:50:55 2026 -0800

    use latest & greatest workflow config
    
    copied from 
https://github.com/mifos/chat-archive/blob/f984aea08927731291560308c1d2d99596681212/.github/workflows/update-archive.yml
---
 update-archive.yml | 58 ++++++++++++++++++++++++++++++++++++++++++++----------
 1 file changed, 48 insertions(+), 10 deletions(-)

diff --git a/update-archive.yml b/update-archive.yml
index 4ed7ee0..b74841e 100644
--- a/update-archive.yml
+++ b/update-archive.yml
@@ -23,28 +23,66 @@ on:
     - cron: '0 2 * * *'
   workflow_dispatch:
 
-permissions:
-  contents: write
-
 jobs:
+  load:
+    name: Load state
+    runs-on: ubuntu-slim
+    timeout-minutes: 1
+    steps:
+      - uses: actions/checkout@v6
+
+      - uses: actions/upload-artifact@v6
+        with:
+          path: |
+            docs
+            state
+          name: current-state
+
   update:
+    name: Update archive
+    needs: load
     runs-on: ubuntu-latest
+    timeout-minutes: 2
     steps:
-      - name: Checkout
-        uses: actions/checkout@v4
+      - uses: actions/download-artifact@v7
+        with:
+          name: current-state
+
+      - uses: actions/checkout@v6
+        with:
+          repository: 'apache/fineract-chat-archive'
 
-      - name: Setup Java
-        uses: actions/setup-java@v4
+      - uses: actions/setup-java@v5
         with:
-          distribution: 'temurin'
+          distribution: 'zulu'
           java-version: '21'
-          cache: 'gradle'
 
-      - name: Update archive
+      - name: Fetch messages
         env:
           SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
         run: ./gradlew updateChatArchive
 
+      - uses: actions/upload-artifact@v6
+        with:
+          path: |
+            docs
+            state
+          name: new-state
+
+  save:
+    name: Save state
+    needs: update
+    runs-on: ubuntu-slim
+    timeout-minutes: 1
+    permissions:
+      contents: write
+    steps:
+      - uses: actions/checkout@v6
+
+      - uses: actions/download-artifact@v7
+        with:
+          name: new-state
+
       - name: Commit updates
         run: |
           if [ -d docs ]; then

Reply via email to