From 7bc405496ce339ff8c6021efa1d84a471e7b4b93 Mon Sep 17 00:00:00 2001 From: Charlotte Kostelic Date: Thu, 11 Apr 2024 15:10:14 -0400 Subject: [PATCH] testing other vars --- .github/workflows/monthly-check.yaml | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/.github/workflows/monthly-check.yaml b/.github/workflows/monthly-check.yaml index fbce7fd..d0cc6fc 100644 --- a/.github/workflows/monthly-check.yaml +++ b/.github/workflows/monthly-check.yaml @@ -34,9 +34,8 @@ jobs: run: | 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 'DEBUG - Revised' lcsh.log | grep -Eo '\[.+]$')" >> $GITHUB_ENV - echo "DEPRECATED=$(grep 'DEBUG - Deprecated' lcsh.log | grep -Eo '\[.+]$')" >> $GITHUB_ENV + echo "REVISED=$(grep 'DEBUG - Revised' lcsh.log && echo 'true' || echo 'false')" >> $GITHUB_ENV + echo "DEPRECATED=$(grep 'DEBUG - Deprecated' lcsh.log && echo 'true' || echo 'false')" >> $GITHUB_ENV - name: Create PR text (no changes) run: | @@ -48,7 +47,7 @@ jobs: } >> $GITHUB_ENV - name: Create PR and Issue text (changes) - if: ${{ env.CHANGED == 'true' }} + if: ${{ env.REVISED == 'true' || env.DEPRECATED == 'true' }} run: | { echo "PR_BODY<> $GITHUB_ENV - { - echo "ISSUE_BODY<> $GITHUB_ENV - - name: Check PR and Issue text run: | echo "CHANGED: ${{ env.CHANGED }}" echo "REVISED: ${{ env.REVISED }}" echo "DEPRECATED: ${{ env.DEPRECATED }}" - echo "PR_BODY: ${{ env.PR_BODY }}" - echo "ISSUE_BODY: ${{ env.ISSUE_BODY }}" \ No newline at end of file + echo "PR_BODY: ${{ env.PR_BODY }}" \ No newline at end of file