Skip to content

Commit

Permalink
Fix diff output
Browse files Browse the repository at this point in the history
  • Loading branch information
titpetric committed Jul 27, 2023
1 parent 6a91aca commit 4aa216f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/api-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@ jobs:
go mod tidy
rsync -a /tmp/.taskfiles/ .taskfiles/
task -t .taskfiles/godoc/Taskfile.yml > prev.txt
echo "diff<<EOF" >> $GITHUB_OUTPUT
diff -u prev.txt current.txt || true >> $GITHUB_OUTPUT
diff -u prev.txt current.txt > changes.txt
echo "diff-output<<EOF" >> $GITHUB_OUTPUT
cat current.txt >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Find Comment
Expand All @@ -69,6 +72,6 @@ jobs:
body: |
API Changes
```shellsession
${{ steps.api-check.outputs.diff || 'none detected' }}
${{ steps.api-check.outputs.diff-output || 'none detected' }}
```
edit-mode: replace

0 comments on commit 4aa216f

Please sign in to comment.