فهرست منبع

Minor workflow tweaks

Nick Ortakales 10 ماه پیش
والد
کامیت
677ff1d7c7
4فایلهای تغییر یافته به همراه13 افزوده شده و 13 حذف شده
  1. 6 6
      .github/workflows/build_directories.yaml
  2. 4 4
      .github/workflows/validate_files.yaml
  3. 3 3
      build_directories.sh
  4. 0 0
      validate_files.sh

+ 6 - 6
.github/workflows/known_tonies.yaml → .github/workflows/build_directories.yaml

@@ -1,4 +1,4 @@
-name: build known tonies for each language
+name: Build directory markdown files
 
 
 on:
 on:
   push:
   push:
@@ -11,16 +11,16 @@ jobs:
       contents: write
       contents: write
 
 
     steps:
     steps:
-      - name: checkout
+      - name: Checkout
         uses: actions/checkout@v4
         uses: actions/checkout@v4
         with:
         with:
           ref: ${{ github.head_ref }}
           ref: ${{ github.head_ref }}
 
 
-      - name: build known tonies
-        run: ./build_known_tonies.sh
+      - name: Build directories
+        run: ./build_directories.sh
 
 
       - name: Commit changes
       - name: Commit changes
         uses: stefanzweifel/git-auto-commit-action@v5
         uses: stefanzweifel/git-auto-commit-action@v5
         with:
         with:
-          file_pattern: '*/*.md'
-          commit_message: update language specific known tonies list
+          file_pattern: "*/*.md"
+          commit_message: Auto update directory markdown files

+ 4 - 4
.github/workflows/validate.yaml → .github/workflows/validate_files.yaml

@@ -1,10 +1,10 @@
-name: Validate NFC Files
+name: Validate NFC files
 
 
 on:
 on:
   push:
   push:
   workflow_dispatch:
   workflow_dispatch:
   pull_request:
   pull_request:
-    types: [ opened, synchronize, reopened ]
+    types: [opened, synchronize, reopened]
 
 
 jobs:
 jobs:
   validation:
   validation:
@@ -14,5 +14,5 @@ jobs:
       - name: Checkout repository
       - name: Checkout repository
         uses: actions/checkout@v4
         uses: actions/checkout@v4
 
 
-      - name: validate
-        run: ./validation.sh
+      - name: Run validation
+        run: ./validate_files.sh

+ 3 - 3
build_known_tonies.sh → build_directories.sh

@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 #!/usr/bin/env bash
 
 
-echo "Building known tonies for each folder"
+echo "Building directory markdown files for known tonies"
 
 
 while read -r LANG_DIR; do
 while read -r LANG_DIR; do
     NFC_FILES=()
     NFC_FILES=()
@@ -13,9 +13,9 @@ while read -r LANG_DIR; do
 
 
     echo "${FOLDER} has ${NFC_FILES_COUNT}"
     echo "${FOLDER} has ${NFC_FILES_COUNT}"
     {
     {
-      echo "# ${NFC_FILES_COUNT} ${FOLDER} NFC Files"
+      echo "# ${FOLDER} Tonies (${NFC_FILES_COUNT} files)"
       echo ""
       echo ""
-      echo "automatically generated, do not edit"
+      echo "*Note: this file is automatically generated, do not edit manually*"
       echo ""
       echo ""
       echo "| Folder | Filename |"
       echo "| Folder | Filename |"
       echo "|--------|----------|"
       echo "|--------|----------|"

+ 0 - 0
validation.sh → validate_files.sh