From 441d6a7bd9acf3f57e6052fedfb3f1aae429656a Mon Sep 17 00:00:00 2001 From: eclipse-sirius-bot <138491446+eclipse-sirius-bot@users.noreply.github.com> Date: Fri, 22 Dec 2023 11:33:24 +0100 Subject: [PATCH] Updating file '.github/workflows/validate.yml' with otterdog. --- .github/workflows/validate.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index ad41819..3d6cdf2 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -78,7 +78,10 @@ jobs: working-directory: otterdog-configs - name: Generate canonical diff - run: ../otterdog/otterdog.sh canonical-diff ${{ github.repository_owner }} -c otterdog.json | tee "$GITHUB_WORKSPACE/canonical-diff.txt" + run: | + ../otterdog/otterdog.sh canonical-diff ${{ github.repository_owner }} -c otterdog.json | tee "$GITHUB_WORKSPACE/canonical-diff-ansi.txt" + # filter out ansi escape sequences + cat "$GITHUB_WORKSPACE/canonical-diff-ansi.txt" | sed -e 's/\x1b\[[0-9;]*m//g' | sed -E 's/^([[:space:]]+)([-+!])/\2\1/g' | sed -E 's/^([[:space:]]+)([~])/!\1/g' > "$GITHUB_WORKSPACE/canonical-diff.txt" working-directory: otterdog-configs # Add a comment to the pull request with the diff