Skip to content

Commit ed9273f

Browse files
authored
Merge pull request #1366 from smallstep/herman/fix-jq-argfile
Replace `jq` `--argfile` with `--slurpfile`
2 parents 74c1b44 + 2826c76 commit ed9273f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ jobs:
162162
]' > "$RUNNER_TEMP/reference-routes.json"
163163
164164
# Replace old route manifest with new
165-
jq --argfile newRoutes "$RUNNER_TEMP/reference-routes.json" 'walk(
165+
jq --slurpfile newRoutes "$RUNNER_TEMP/reference-routes.json" 'walk(
166166
if type == "object" and .isStepReference == true then
167-
.routes = $newRoutes
167+
.routes = $newRoutes[0]
168168
else . end
169169
)' < manifest.json > manifest.json.new
170170

0 commit comments

Comments
 (0)