Skip to content

Commit

Permalink
FIX-WIP: result reading for badge creation ... again
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienGilliard committed Sep 16, 2024
1 parent 3623f79 commit c491e4a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/evaluate_tree_packing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,14 @@ jobs:
- name: Create badge for RMSE
id: create-badge-rmse
run: |
rmse=${{ env.rmse }}
echo "![RMSE](https://img.shields.io/badge/RMSE-${rmse}-brightgreen)" > badge.md
echo "![RMSE](https://img.shields.io/badge/RMSE-${{ env.rmse }}-brightgreen)" > badge.md
- name: Create badge for tree usage
id: create-badge-tree-usage
run: |
tree_usage=${{ env.tree_usage }}
echo "![Tree Usage](https://img.shields.io/badge/Tree_Usage-${tree_usage}-brightgreen)" > badge.md
echo "![Tree Usage](https://img.shields.io/badge/Tree_Usage-${{ env.tree_usage }}-brightgreen)" > badge.md
- name: Update README
run: |
rmse=${{ env.rmse }}
tree_usage=${{ env.tree_usage }}
sed -i "s/RMSE: .*/RMSE: ${rmse}/" README.md
sed -i "s/Tree Usage: .*/Tree Usage: ${tree_usage}/" README.md
sed -i "s/RMSE: .*/RMSE:${{ env.rmse }}/" README.md
sed -i "s/Tree Usage: .*/Tree Usage: ${{ env.tree_usage }}/" README.md

0 comments on commit c491e4a

Please sign in to comment.