File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -504,11 +504,10 @@ jobs:
504504 accuracy_${{ matrix.model }}.txt
505505 accuracy_value_${{ matrix.model }}.txt
506506
507- - name : Update README for model (main only)
508- if : github.ref == 'refs/heads/main'
507+ - name : Update README for model
509508 run : |
510- TOP1_ACC=$(grep -oE 'Top-1 Accuracy: [0-9]+\.?[0-9]*%' accuracy_${{ matrix.model }}.txt | grep -oE '[0-9]+\.?[0-9]*')
511- TOP5_ACC=$(grep -oE 'Top-5 Accuracy: [0-9]+\.?[0-9]*%' accuracy_${{ matrix.model }}.txt | grep -oE '[0-9]+\.?[0-9]*')
509+ TOP1_ACC=$(grep -oE 'Top-1 Accuracy: [0-9]+\.?[0-9]*%' accuracy_${{ matrix.model }}.txt | grep -oE '[0-9]+\.?[0-9]*' | head -n1 )
510+ TOP5_ACC=$(grep -oE 'Top-5 Accuracy: [0-9]+\.?[0-9]*%' accuracy_${{ matrix.model }}.txt | grep -oE '[0-9]+\.?[0-9]*' | head -n1 )
512511 DATE=$(date '+%Y-%m-%d')
513512
514513 if [ -z "$TOP1_ACC" ] || [ -z "$TOP5_ACC" ]; then
You can’t perform that action at this time.
0 commit comments