Skip to content

Commit b6cc5d9

Browse files
authored
fix: marker should not be taken as an argument to grep
1 parent ffeb46a commit b6cc5d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ runs:
3535
- name: Find line numbers and update Markdown file
3636
shell: bash
3737
run: |
38-
START_LINE=$(grep -n "${{ inputs.start_marker }}" "${{ inputs.snippet_file }}" | cut -d: -f1)
39-
END_LINE=$(grep -n "${{ inputs.end_marker }}" "${{ inputs.snippet_file }}" | cut -d: -f1)
38+
START_LINE=$(grep -n -- "${{ inputs.start_marker }}" "${{ inputs.snippet_file }}" | cut -d: -f1)
39+
END_LINE=$(grep -n -- "${{ inputs.end_marker }}" "${{ inputs.snippet_file }}" | cut -d: -f1)
4040
4141
if [ -z "$START_LINE" ] || [ -z "$END_LINE" ]; then
4242
echo "Markers not found in snippet file"

0 commit comments

Comments
 (0)