We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffeb46a commit b6cc5d9Copy full SHA for b6cc5d9
action.yml
@@ -35,8 +35,8 @@ runs:
35
- name: Find line numbers and update Markdown file
36
shell: bash
37
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)
+ START_LINE=$(grep -n -- "${{ inputs.start_marker }}" "${{ inputs.snippet_file }}" | cut -d: -f1)
+ END_LINE=$(grep -n -- "${{ inputs.end_marker }}" "${{ inputs.snippet_file }}" | cut -d: -f1)
40
41
if [ -z "$START_LINE" ] || [ -z "$END_LINE" ]; then
42
echo "Markers not found in snippet file"
0 commit comments