Explorar o código

Update catalog update github action

M. Rehan %!s(int64=2) %!d(string=hai) anos
pai
achega
6905a6c910
Modificáronse 1 ficheiros con 11 adicións e 2 borrados
  1. 11 2
      .github/workflows/update_catalog.yaml

+ 11 - 2
.github/workflows/update_catalog.yaml

@@ -20,12 +20,21 @@ jobs:
       - name: Add catalog json as a safe directory
         run: |
           /bin/bash -c "PWD=${pwd}; git config --global --add safe.directory $PWD"
-      - name: Update catalog details
+      - name: Publish catalog
+        run: |
+          /bin/bash -c "PWD=${pwd}; /usr/local/bin/catalog_update publish --path $PWD"
+      - uses: stefanzweifel/git-auto-commit-action@v4
+        with:
+            commit_message: Publish new changes in catalog
+            commit_user_name: sonicaj
+            commit_user_email: waqarsonic1@gmail.com
+            commit_author: sonicaj <waqarsonic1@gmail.com>
+      - name: Update catalog
         run: |
           /bin/bash -c "PWD=${pwd}; /usr/local/bin/catalog_update update --path $PWD"
       - uses: stefanzweifel/git-auto-commit-action@v4
         with:
-            commit_message: Update catalog information
+            commit_message: Update catalog changes
             commit_user_name: sonicaj
             commit_user_email: waqarsonic1@gmail.com
             commit_author: sonicaj <waqarsonic1@gmail.com>