Skip to content

Commit

Permalink
echo formatted diff into the cli
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderM91 committed Dec 2, 2024
1 parent 281dc30 commit f14ad98
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,6 @@ jobs:
current_section=$(sed -n "/=== $section ===/,/=== /p" "$current_file" | sed '$d')
previous_section=$(sed -n "/=== $section ===/,/=== /p" "$previous_file" | sed '$d')

echo "DEBUG: Extracted current section for $section:"
echo "$current_section"
echo "DEBUG: Extracted previous section for $section:"
echo "$previous_section"

# Compare extracted sections
diff_output=$(diff <(echo "$previous_section") <(echo "$current_section") | awk '
/^</ {
Expand All @@ -164,9 +159,6 @@ jobs:
}
}')

echo "DEBUG: Diff output for $section:"
echo "$diff_output"

echo "$diff_output"
}

Expand All @@ -190,6 +182,7 @@ jobs:
echo "EOF" >> $GITHUB_ENV



- name: Send Slack Notification
# if: ${{ github.ref == 'refs/heads/master' && env.DIFF_OUTPUT != '' }}
uses: slackapi/[email protected]
Expand Down

0 comments on commit f14ad98

Please sign in to comment.