Skip to content

Commit

Permalink
fix(ci): insert braces
Browse files Browse the repository at this point in the history
  • Loading branch information
KisaragiEffective committed Apr 13, 2024
1 parent c9fffac commit 6a56f86
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/validate-renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
echo "npx: $(npx --version)"
echo "installing: $package..."
export H="$(mktemp)"
echo '{' >> "$H"
# let's do main part, but avoid pipefail
(npx --yes --package "$package" -- renovate-config-validator --strict || true)\
| ruby -e 'File.open(ENV[?H], ?w) {|r| while gets; puts $_; $> = r if $_.strip == "WARN: Config migration necessary" ;end; }'
echo '}' >> "H"
echo "---"
echo "Collected output: $H"
cat "$H"
Expand All @@ -40,8 +40,8 @@ jobs:
mv "$OLD" "${OLD}.old.txt"
NEW="$(mktemp)"
mv "$NEW" "${NEW}.new.txt"
jq -rs '.[0].oldConfig' < "$H" > "$OLD"
jq -rs '.[1].newConfig' < "$H" > "$NEW"
jq -rs '.oldConfig' < "$H" > "$OLD"
jq -rs '.newConfig' < "$H" > "$NEW"
DIFF_TO_BE_REPORTED="$(mktemp)"
mv "$DIFF_TO_BE_REPORTED" "${DIFF_TO_BE_REPORTED}.diff"
Expand Down

0 comments on commit 6a56f86

Please sign in to comment.