Skip to content

Commit

Permalink
Modifying diff to ignore whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
DeathbyToast committed Feb 29, 2024
1 parent e1b1fb8 commit 6b0cfb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/diff_and_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ jobs:
# https://trstringer.com/github-actions-multiline-strings/
run: |
DIFF_OUT=$(cat << EOF
`diff --suppress-common-lines <(sed 's/\r//g' <(curl https://config.playwire.com/dyn_ads/1025030/74482/ads.txt)) <(sed 's/\r//g' <(curl https://pvpivs.com/ads.txt))`
`diff --ignore-all-space <(sed 's/\r//g' <(curl https://config.playwire.com/dyn_ads/1025030/74482/ads.txt)) <(sed 's/\r//g' <(curl https://pvpivs.com/ads.txt))`
EOF
)
echo "DIFF_OUT<<EOF" >> $GITHUB_OUTPUT
echo "$DIFF_OUT" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
diff --suppress-common-lines <(sed 's/\r//g' <(curl https://config.playwire.com/dyn_ads/1025030/74482/ads.txt)) <(sed 's/\r//g' <(curl https://pvpivs.com/ads.txt))
diff --ignore-all-space <(sed 's/\r//g' <(curl https://config.playwire.com/dyn_ads/1025030/74482/ads.txt)) <(sed 's/\r//g' <(curl https://pvpivs.com/ads.txt))
- run: echo "💡 Diff completed, diff outcome is ${{ steps.diff-adstxt-files.outcome }}."
- run: echo "🍏 This job's status is ${{ job.status }}."
Update-ads-txt-after-failed-diff:
Expand Down

0 comments on commit 6b0cfb7

Please sign in to comment.