We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d25160b commit 36abddaCopy full SHA for 36abdda
.github/workflows/build.yml
@@ -45,6 +45,20 @@ jobs:
45
- name: end
46
id: end
47
run: grep -a "Test passed" output.txt | grep -oP "\d{1,}/\d{1,}" | xargs -i echo "points={}" | tee $GITHUB_OUTPUT
48
+ - name: Require full points
49
+ run: |
50
+ POINTS='${{ steps.end.outputs.points }}'
51
+ if [ -z "$POINTS" ]; then
52
+ echo "points is empty"
53
+ exit 1
54
+ fi
55
+ GOT="${POINTS%%/*}"
56
+ TOTAL="${POINTS##*/}"
57
+ if [ "$GOT" != "$TOTAL" ]; then
58
+ echo "points is not full score: $POINTS"
59
60
61
+ echo "points is full score: $POINTS"
62
deploy:
63
if: github.repository != 'LearningOS/rCore-Tutorial-Code'
64
name: Deploy to pages
0 commit comments