Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/JsonGenerator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,14 @@ jobs:
> "diffs/combined.diff" || true
fi

# Strip the differing root from the diff's ---/+++ file header lines so both sides share an identical path
sed -i -E \
-e 's#^(--- )baseline/#\1#' \
-e 's#^(\+\+\+ )generated/#\1#' \
-e 's#^(--- )generated/#\1#' \
-e 's#^(\+\+\+ )baseline/#\1#' \
"diffs/combined.diff"

if [[ -s "diffs/combined.diff" ]]; then
HAS_DIFF="true"
export HAS_DIFF
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/LuaGenerator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,14 @@ jobs:
> "diffs/combined.diff" || true
fi

# Strip the differing root from the diff's ---/+++ file header lines so both sides share an identical path
sed -i -E \
-e 's#^(--- )baseline/#\1#' \
-e 's#^(\+\+\+ )generated/#\1#' \
-e 's#^(--- )generated/#\1#' \
-e 's#^(\+\+\+ )baseline/#\1#' \
"diffs/combined.diff"

if [[ -s "diffs/combined.diff" ]]; then
HAS_DIFF="true"
export HAS_DIFF
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/PluginSkeletonGenerator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,14 @@ jobs:
"baseline_${name}" "artifacts/PluginSkeleton-${name}" \
> "diffs/${name}.diff" || true

# Strip the differing roots from the diff's ---/+++ file header lines so both sides share an identical path
sed -i -E \
-e "s#^(--- )baseline_${name}/#\\1#" \
-e "s#^(\\+\\+\\+ )artifacts/PluginSkeleton-${name}/#\\1#" \
-e "s#^(--- )artifacts/PluginSkeleton-${name}/#\\1#" \
-e "s#^(\\+\\+\\+ )baseline_${name}/#\\1#" \
"diffs/${name}.diff"

if [[ -s "diffs/${name}.diff" ]]; then
npx --yes diff2html-cli@5.2.15 -i file -F "site/$RUN_DIR/diff/${name}.html" -- "diffs/${name}.diff"
echo "$name" >> diffs/plugins_with_diffs.txt
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/ProxyStubGenerator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,14 @@ jobs:
> "diffs/combined.diff" || true
fi

# Strip the differing root from the diff's ---/+++ file header lines so both sides share an identical path
sed -i -E \
-e 's#^(--- )baseline/#\1#' \
-e 's#^(\+\+\+ )generated/#\1#' \
-e 's#^(--- )generated/#\1#' \
-e 's#^(\+\+\+ )baseline/#\1#' \
"diffs/combined.diff"

if [[ -s "diffs/combined.diff" ]]; then
HAS_DIFF="true"
export HAS_DIFF # Update export so Python sees "true"
Expand Down
Loading