From 9e277d1547196b726e5d8da3fbb87a121325941a Mon Sep 17 00:00:00 2001 From: eclipse-windowbuilder-bot <73468934+eclipse-windowbuilder-bot@users.noreply.github.com> Date: Fri, 22 Dec 2023 11:35:31 +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