Skip to content

Commit 0b41066

Browse files
authored
fix: don't include marker lines in the snippet
1 parent b6cc5d9 commit 0b41066

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ runs:
4242
echo "Markers not found in snippet file"
4343
exit 1
4444
fi
45+
46+
START_LINE=$((START_LINE + 1))
47+
END_LINE=$((END_LINE - 1))
4548
4649
PERMALINK="https://github.com/${GITHUB_REPOSITORY}/blob/${{ steps.get-commit.outputs.commit_id }}/${{ inputs.snippet_file }}#L${START_LINE}-L${END_LINE}"
4750

0 commit comments

Comments
 (0)