Skip to content

Commit

Permalink
feat: output diff of changed file
Browse files Browse the repository at this point in the history
  • Loading branch information
Robitx authored Jul 22, 2024
1 parent b80b53a commit 143be78
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ runs:
echo "permalink=$PERMALINK" >> $GITHUB_OUTPUT
# Use sed with a temp file to replace the line after the marker
sed "/${{ inputs.replace_marker }}/!b;n;c$PERMALINK" \
"${{ inputs.markdown_file }}" > temp_file && \
mv temp_file "${{ inputs.markdown_file }}"
- name: Output diff for the changed file
shell: bash
run: |
git diff "${{ inputs.markdown_file }}"

0 comments on commit 143be78

Please sign in to comment.