We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1148a2d commit 26878a2Copy full SHA for 26878a2
1 file changed
.github/workflows/build.yml
@@ -30,3 +30,17 @@ jobs:
30
run: |
31
cat output.txt | grep "Test passed" | grep -oP "\d{1,}/\d{1,}" | xargs -i echo "points={}"
32
cat output.txt | grep "Test passed" | grep -oP "\d{1,}/\d{1,}" | xargs -i echo "points={}" >> $GITHUB_OUTPUT
33
+ - name: Require full points
34
+ run: |
35
+ POINTS='${{ steps.end.outputs.points }}'
36
+ if [ -z "$POINTS" ]; then
37
+ echo "points is empty"
38
+ exit 1
39
+ fi
40
+ GOT="${POINTS%%/*}"
41
+ TOTAL="${POINTS##*/}"
42
+ if [ "$GOT" != "$TOTAL" ]; then
43
+ echo "points is not full score: $POINTS"
44
45
46
+ echo "points is full score: $POINTS"
0 commit comments