Skip to content

Commit

Permalink
πŸ’š Fix "Add Identifiers" workflow (step "Patch Match Table")
Browse files Browse the repository at this point in the history
Location of the Ruby Gems folder has changed in recent Mac versions.
Now use RubyGems API (instead of a hard-coded path) to find
the installation path of the terminal-table gem.
  • Loading branch information
ebouchut committed Jul 16, 2024
1 parent 053047b commit 86a59c9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/add_identifiers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,15 @@ 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("terminal-table").gem_dir')/lib/terminal-table/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
# Install project dependencies
- name: Install Project Dependencies
run: bundle install
Expand Down

0 comments on commit 86a59c9

Please sign in to comment.