Procházet zdrojové kódy

update add_identifiers name and Patch Match Table

marionbarker před 1 rokem
rodič
revize
fb99285ec7
1 změnil soubory, kde provedl 9 přidání a 1 odebrání
  1. 9 1
      .github/workflows/add_identifiers.yml

+ 9 - 1
.github/workflows/add_identifiers.yml

@@ -10,6 +10,7 @@ jobs:
     secrets: inherit
 
   identifiers:
+    name: Add Identifiers
     needs: validate
     runs-on: macos-15
     steps:
@@ -19,7 +20,14 @@ jobs:
         
       # Patch Fastlane Match to not print tables
       - name: Patch Match Tables
-        run: find /usr/local/lib/ruby/gems -name table_printer.rb | xargs sed -i "" "/puts(Terminal::Table.new(params))/d"
+        run: |
+          TABLE_PRINTER_PATH=$(ruby -e 'puts Gem::Specification.find_by_name("fastlane").gem_dir')/match/lib/match/table_printer.rb
+          if [ -f "$TABLE_PRINTER_PATH" ]; then
+            sed -i "" "/puts(Terminal::Table.new(params))/d" "$TABLE_PRINTER_PATH"
+          else
+            echo "table_printer.rb not found"
+            exit 1
+          fi
 
       # Sync the GitHub runner clock with the Windows time server (workaround as suggested in https://github.com/actions/runner/issues/2996)
       - name: Sync clock