new result [34061daf] #903
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Last run | |
on: [push] | |
jobs: | |
check_log: | |
runs-on: ubuntu-latest | |
if: startsWith(github.event.head_commit.message, 'new result') | |
steps: | |
- uses: actions/checkout@v2 | |
- run: | | |
COMMIT=$(echo "${{ github.event.head_commit.message }}" | cut -d "[" -f2 | cut -d "]" -f1) | |
FAIL=$(tail -1 logs/log_$COMMIT) | |
if [[ "$FAIL" == "FAIL" ]]; then | |
echo "The benchmark of commit $COMMIT failed. Look at logs/log_$COMMIT." | |
exit 1 | |
fi |