Skip to content

Commit

Permalink
fix(ci): fix bugs in Homebrew testing
Browse files Browse the repository at this point in the history
* Use -i to modify the file instead of just printing it.
* Fix the search term to match what's in the original file. Otherwise,
  no change actually happens.
  • Loading branch information
strager committed Aug 17, 2024
1 parent c1d2dc7 commit f575f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test-homebrew-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: |
set -x
formula_path="$(brew formula quick-lint/quick-lint-js/quick-lint-js)"
sed -e 's,:branch => "master",:revision => "'"$(git rev-parse HEAD)"'",' "${formula_path}"
sed -i -e 's,branch: "master",revision: "'"$(git rev-parse HEAD)"'",' "${formula_path}"
printf 'updated formula:\n'
cat "${formula_path}"
Expand Down

0 comments on commit f575f08

Please sign in to comment.