From 4aa216f0d490c3f835f3ec433f4b6547ca6d7948 Mon Sep 17 00:00:00 2001 From: Tit Petric Date: Thu, 27 Jul 2023 23:30:59 +0000 Subject: [PATCH] Fix diff output --- .github/workflows/api-changes.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/api-changes.yml b/.github/workflows/api-changes.yml index 2c9ce81a545..e6047a452e4 100644 --- a/.github/workflows/api-changes.yml +++ b/.github/workflows/api-changes.yml @@ -49,8 +49,11 @@ jobs: go mod tidy rsync -a /tmp/.taskfiles/ .taskfiles/ task -t .taskfiles/godoc/Taskfile.yml > prev.txt - echo "diff<> $GITHUB_OUTPUT - diff -u prev.txt current.txt || true >> $GITHUB_OUTPUT + + diff -u prev.txt current.txt > changes.txt + + echo "diff-output<> $GITHUB_OUTPUT + cat current.txt >> $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT - name: Find Comment @@ -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