diff --git a/.github/workflows/swift-reveal-diff.yaml b/.github/workflows/swift-reveal-diff.yaml index 6e21586..72fe757 100644 --- a/.github/workflows/swift-reveal-diff.yaml +++ b/.github/workflows/swift-reveal-diff.yaml @@ -55,12 +55,11 @@ jobs: run: | echo "${{ steps.collected-swift-reveal-before-changes.outputs.content }}" >> old.txt echo "${{ steps.collected-swift-reveal-after-changes.outputs.content }}" >> new.txt - git diff --no-index new.txt old.txt -# delimiter="$(openssl rand -hex 8)" -# FILE_CONTENT=$(git diff --no-index new.txt old.txt) -# echo "content<<${delimiter}" >> "${GITHUB_OUTPUT}" -# echo "$FILE_CONTENT" >> "${GITHUB_OUTPUT}" -# echo "${delimiter}" >> "${GITHUB_OUTPUT}" + delimiter="$(openssl rand -hex 8)" + FILE_CONTENT=$(git diff --no-index new.txt old.txt || true) + echo "content<<${delimiter}" >> "${GITHUB_OUTPUT}" + echo "$FILE_CONTENT" >> "${GITHUB_OUTPUT}" + echo "${delimiter}" >> "${GITHUB_OUTPUT}" if: success() - name: maintain-comment