Skip to content

Commit

Permalink
Update log-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DefinetlyNotAI authored Aug 28, 2024
1 parent 9234729 commit e81aa5c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/log-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit e81aa5c

Please sign in to comment.