From 356eb4d3e15c5c9296b44627822ec2ebb9c1f3db Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 4 Aug 2026 03:16:18 +0000 Subject: [PATCH] refactor: fix useless use of cat in action.yml Replace `cat package.json | jq ...` with `jq ... package.json` to eliminate a useless use of cat and improve the maintainability of the bash step. Co-authored-by: gabrielrufino <31759891+gabrielrufino@users.noreply.github.com> --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 51d1e15..4e0b4fa 100644 --- a/action.yml +++ b/action.yml @@ -63,7 +63,7 @@ runs: shell: bash - id: scripts run: | - scripts=$(cat package.json | jq -c '.scripts | keys') + scripts=$(jq -c '.scripts | keys' package.json) echo "scripts=$scripts" >> $GITHUB_OUTPUT shell: bash - id: install