From f575f08dbef1a3b73ba6be044bfcaf4c01fd51ae Mon Sep 17 00:00:00 2001 From: "Matthew \"strager\" Glazar" Date: Sat, 17 Aug 2024 19:13:59 -0400 Subject: [PATCH] fix(ci): fix bugs in Homebrew testing * 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. --- .github/workflows/test-homebrew-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-homebrew-package.yml b/.github/workflows/test-homebrew-package.yml index 1a078d8c0d..40c4037818 100644 --- a/.github/workflows/test-homebrew-package.yml +++ b/.github/workflows/test-homebrew-package.yml @@ -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}"