Skip to content

Commit

Permalink
testing vars
Browse files Browse the repository at this point in the history
  • Loading branch information
charlottekostelic committed Apr 11, 2024
1 parent 3b658de commit 6d886f7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/monthly-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ 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: |
{
echo "PR_BODY<<EOF"
echo "### Changed:"
echo " + lcsh.log updated with data from workflow run on $(date '+%D')"
echo "${{ test -z env.REVISED == 'false' && '### Added:' && ' + New infile is: data/acc_in.csv' && ' + Old infile is: data/acc_in_$DATE' || '' }}"
echo "${{ env.CHANGED == 'false' && '### Added:' && ' + New infile is: data/acc_in.csv' && ' + Old infile is: data/acc_in_$DATE' || '' }}"
echo EOF
} >> $GITHUB_ENV
Expand All @@ -53,8 +53,8 @@ jobs:
run: |
{
echo "ISSUE_BODY<<EOF"
echo "${{ env.REVISED == 'true' && '### Changed:' && '$(grep "DEBUG - Revised" lcsh.log | grep -Eo "\[.+]$")' || '$(grep -q "DEBUG - Revised" lcsh.log)' }}"
echo "${{ env.DEPRECATED == 'deprecated' && '### Deprecated:' && '$(grep "DEBUG - Deprecated" lcsh.log | grep -Eo "\[.+]$")' || '$(grep -q "DEBUG - Deprecated" lcsh.log)'}}"
echo "${{ env.REVISED != 'false' && '### Changed:' && '${{ env.REVISED }}' || '$(grep -q "DEBUG - Revised" lcsh.log)' }}"
echo "${{ env.DEPRECATED == 'true' && '### Deprecated:' && '$(grep "DEBUG - Deprecated" lcsh.log | grep -Eo "\[.+]$")' || '$(grep -q "DEBUG - Deprecated" lcsh.log)'}}"
echo EOF
} >> $GITHUB_ENV
Expand Down

0 comments on commit 6d886f7

Please sign in to comment.