Skip to content

Commit

Permalink
Only parse expected section
Browse files Browse the repository at this point in the history
  • Loading branch information
katybaulch committed May 1, 2024
1 parent f09b526 commit 214fba9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,14 @@ runs:
# intermediate env var to prevent the workflow being exposed to a critical
# command injection attack
env:
PR_BODY: "${{ inputs.pr_body }}"
PR_NUMBER: "${{ inputs.pr_number }}"
run: |
echo "Determining section to parse..."
PR_BODY="$(echo ${{ inputs.pr_body }} | awk '/^## Proposed version/,/^Notes:/ {if (!/^## Proposed version/ && !/^Notes:/) print}' )"
echo "Determining whether user has selected an auto-tag option..."
script_output=$("${{ github.action_path }}/auto-tag.sh"
if $? != 0; then
exit 1
fi
Expand Down

0 comments on commit 214fba9

Please sign in to comment.