For support ticket related issue: Remove GITHUB_OUTPUT redirect and further improve matching

This commit is contained in:
Nick Bolton
2024-09-06 11:12:09 +01:00
parent 05ca97a202
commit 2ad15cf3dc

View File

@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
env:
CUSTOMER_TEXT: "What type of Synergy user are you?[[:space:]]*\bCustomer\b"
MISSING_TICKET_TEXT: "Support ticket number (for customers)[[:space:]]*\bNo response\b"
MISSING_TICKET_TEXT: "Support ticket number (for customers)[[:space:]]*\b_No response_\b"
COMMENT_BODY: |
Hello, as a customer, you're entitled to tech support which is included in your license.
Please [raise a support ticket](https://symless.com/synergy/contact) if you'd like to take advantage of that.
@ -29,7 +29,7 @@ jobs:
run: |
ISSUE_BODY="${{ github.event.issue.body }}"
NO_TICKET=$(echo "$ISSUE_BODY" | grep -z -q "$MISSING_TICKET_TEXT" && echo "true" || echo "false")
RESULT="no_ticket=${NO_TICKET}" >> $GITHUB_OUTPUT
RESULT="no_ticket=${NO_TICKET}"
echo $RESULT
echo $RESULT >> $GITHUB_OUTPUT