Explorar o código

Add github workflow for updating catalog information

sonicaj %!s(int64=2) %!d(string=hai) anos
pai
achega
90667cf8f5
Modificáronse 1 ficheiros con 22 adicións e 0 borrados
  1. 22 0
      .github/workflows/update_catalog.yaml

+ 22 - 0
.github/workflows/update_catalog.yaml

@@ -0,0 +1,22 @@
+name: catalog_validation
+
+on:
+  push:
+    branches:
+      - 'master'
+
+jobs:
+  validate:
+    runs-on: ubuntu-latest
+
+    container:
+      image: truenas/catalog_validation:latest
+
+    steps:
+      - uses: actions/checkout@v2
+      - name: Update catalog details
+        run: ./update_catalog_detail.py
+      - uses: stefanzweifel/git-auto-commit-action@v4
+        with:
+            commit_message: Update catalog information
+            file_pattern: 'catalog.json'