diff --git a/.github/workflows/monthly-check.yaml b/.github/workflows/monthly-check.yaml index 0148ed2..3310946 100644 --- a/.github/workflows/monthly-check.yaml +++ b/.github/workflows/monthly-check.yaml @@ -34,6 +34,7 @@ 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 -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 @@ -43,33 +44,22 @@ jobs: echo "PR_BODY<> $GITHUB_ENV - name: Create PR and Issue text (changes) - if: ${{ env.REVISED == 'true' || env.DEPRECATED == 'true '}} + if: ${{ env.CHANGED == '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 "CHANGED: ${{ env.CHANGED }}" echo "PR_BODY: ${{ env.PR_BODY }}" echo "ISSUE_BODY: ${{ env.ISSUE_BODY }}" \ No newline at end of file