Skip to content

Commit

Permalink
chore: simpler condition when build fails (#12535)
Browse files Browse the repository at this point in the history
  • Loading branch information
manolo authored Dec 8, 2021
1 parent 2ecff67 commit b7c3b9f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ jobs:
N=`echo "${{matrix.current}}" | cut -d : -f2`
H=`find $M/src/test -name "*IT.java" | xargs basename -s .java`
C=`echo "$H" | wc -l`
J=`echo "$C / $MAX + 1" | bc`
J=`echo "$C / $MAX" | bc`
I=`echo "$J * $N + 1" | bc`
T=`echo "$H" | tail +$I | head -$J`
A=`echo "$T" | grep ... | tr '\n' ',' | sed -e 's/,$//'`
Expand Down Expand Up @@ -210,10 +210,7 @@ jobs:
with:
name: saved-workspace
- name: The Build has Failed
if: ${{ failure() }}
run: exit 1
- name: The Build has Cancelled
if: ${{ cancelled() }}
if: ${{ failure() || cancelled() }}
run: exit 1
- name: The Build has Succeeded
if: ${{ success() }}
Expand Down

0 comments on commit b7c3b9f

Please sign in to comment.