diff --git a/.github/workflows/monthly-check.yaml b/.github/workflows/monthly-check.yaml index 59241b1..13a743a 100644 --- a/.github/workflows/monthly-check.yaml +++ b/.github/workflows/monthly-check.yaml @@ -35,8 +35,8 @@ jobs: git checkout -b monthly_check_$DATE python monthly_lcsh_check.py echo "CHANGED=$(grep -q 'DEBUG' lcsh.log && echo 'true' || echo 'false')" >> $GITHUB_ENV - echo "REVISED=$(grep -q 'DEBUG - Revised' lcsh.log && echo 'true' || echo 'false')" >> $GITHUB_ENV - echo "DEPRECATED=$(grep -q 'DEBUG - Deprecated' lcsh.log && echo 'true' || echo 'false')" >> $GITHUB_ENV + echo "REVISED=$(grep -q 'DEBUG - Revised' lcsh.log && | grep -Eo "\[.+]$" || echo 'false')" >> $GITHUB_ENV + echo "DEPRECATED=$(grep -q 'DEBUG - Deprecated' lcsh.log && | grep -Eo "\[.+]$" || echo 'false')" >> $GITHUB_ENV - name: Create PR text (no changes) run: | @@ -44,7 +44,7 @@ jobs: echo "PR_BODY<> $GITHUB_ENV @@ -53,8 +53,8 @@ jobs: run: | { echo "ISSUE_BODY<> $GITHUB_ENV