From e81aa5c2328f587e0641e3078d0c1b23f28f3c06 Mon Sep 17 00:00:00 2001 From: Shahm Najeeb Date: Wed, 28 Aug 2024 13:03:46 +0300 Subject: [PATCH] Update log-check.yml --- .github/workflows/log-check.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/log-check.yml b/.github/workflows/log-check.yml index e9e159f..358b505 100644 --- a/.github/workflows/log-check.yml +++ b/.github/workflows/log-check.yml @@ -11,11 +11,12 @@ jobs: steps: - uses: actions/checkout@v2 - name: Extract logs - env: - DEBUG_LOG: ${{ github.event.issue.body | regex '(?<=Debugger Log\n\n)(.*?)(?=###)' }} - BASIC_LOG: ${{ github.event.issue.body | regex '(?<=Basic Log\n\n)(.*?)(?=###)' }} - - name: Check similar issues - uses: craigloewen-msft/GitGudSimilarIssues@main + run: | + DEBUG_LOG=$(echo "${{ github.event.issue.body }}" | grep -A1000 "Debugger Log") + BASIC_LOG=$(echo "${{ github.event.issue.body }}" | grep -A1000 "Basic Log") + echo "DEBUG_LOG=${DEBUG_LOG}" >> $GITHUB_ENV + echo "BASIC_LOG=${BASIC_LOG}" >> $GITHUB_ENV + - uses: craigloewen-msft/GitGudSimilarIssues@main with: issueTitle: ${{ github.event.issue.title }} issueBody: ${{ github.event.issue.body }}