Skip to content

Commit

Permalink
fix syntax error
Browse files Browse the repository at this point in the history
 * BusKill/buskill-app#90 (comment)
 * https://github.com/BusKill/buskill-app/actions/runs/10306855519/job/28530828444?pr=90

  2024-08-08T17:39:22.5370542Z ##[group]Run if [[ "WARNING: git diff failed!" | grep -Ei "ERROR|WARNING" ]]; then
  2024-08-08T17:39:22.5371079Z [36;1m[0m
  2024-08-08T17:39:22.5371457Z [36;1mif [[ "WARNING: git diff failed!" | grep -Ei "ERROR|WARNING" ]]; then[0m
  2024-08-08T17:39:22.5371917Z [36;1m  exit 1[0m
  2024-08-08T17:39:22.5372141Z [36;1melse[0m
  2024-08-08T17:39:22.5372356Z [36;1m  exit 0[0m
  2024-08-08T17:39:22.5372651Z shell: bash {0}
  2024-08-08T17:39:22.5372864Z env:
  2024-08-08T17:39:22.5373114Z   UNICODE_HUMAN_RESULT: WARNING: git diff failed!
  2024-08-08T17:39:22.5373466Z ##[endgroup]
  2024-08-08T17:39:22.6145287Z /__w/_temp/8a48bf26-0dbe-4e74-bfec-9efb78fd13c5.sh: line 2: unexpected token `|', conditional binary operator expected
  2024-08-08T17:39:22.6147084Z /__w/_temp/8a48bf26-0dbe-4e74-bfec-9efb78fd13c5.sh: line 2: syntax error near `|'
  2024-08-08T17:39:22.6148958Z /__w/_temp/8a48bf26-0dbe-4e74-bfec-9efb78fd13c5.sh: line 2: `if [[ "WARNING: git diff failed!" | grep -Ei "ERROR|WARNING" ]]; then'
  2024-08-08T17:39:22.6172279Z ##[error]Process completed with exit code 2.
  • Loading branch information
maltfield committed Aug 8, 2024
1 parent 521a642 commit 3f64d20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/unicode_warn.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
################################################################################
# File: .github/workflows/unicode_warn.yml
# Version: 0.4
# Version: 0.5
# Purpose: Detects Unicode in PRs and comments the results of findings in PR
# Authors: Michael Altfield <[email protected]>
# Created: 2021-11-20
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
- name: Exit with or without error
run: |
if [[ "${{ env.UNICODE_HUMAN_RESULT }}" | grep -Ei "ERROR|WARNING" ]]; then
if [[ $(echo "${{ env.UNICODE_HUMAN_RESULT }}" | grep -Ei "ERROR|WARNING") ]]; then
exit 1
else
exit 0
Expand Down

0 comments on commit 3f64d20

Please sign in to comment.