Skip to content

Commit 143be78

Browse files
authored
feat: output diff of changed file
1 parent b80b53a commit 143be78

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ runs:
5050
5151
echo "permalink=$PERMALINK" >> $GITHUB_OUTPUT
5252
53-
# Use sed with a temp file to replace the line after the marker
5453
sed "/${{ inputs.replace_marker }}/!b;n;c$PERMALINK" \
5554
"${{ inputs.markdown_file }}" > temp_file && \
5655
mv temp_file "${{ inputs.markdown_file }}"
56+
57+
- name: Output diff for the changed file
58+
shell: bash
59+
run: |
60+
git diff "${{ inputs.markdown_file }}"

0 commit comments

Comments
 (0)