Skip to content

Commit

Permalink
fix: don't include marker lines in the snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
Robitx authored Jul 22, 2024
1 parent b6cc5d9 commit 0b41066
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ runs:
echo "Markers not found in snippet file"
exit 1
fi
START_LINE=$((START_LINE + 1))
END_LINE=$((END_LINE - 1))
PERMALINK="https://github.com/${GITHUB_REPOSITORY}/blob/${{ steps.get-commit.outputs.commit_id }}/${{ inputs.snippet_file }}#L${START_LINE}-L${END_LINE}"
Expand Down

0 comments on commit 0b41066

Please sign in to comment.