From c491e4a064484f0131a1c48650a50f84cbc42067 Mon Sep 17 00:00:00 2001 From: DamienGilliard <127743632+DamienGilliard@users.noreply.github.com> Date: Mon, 16 Sep 2024 03:05:48 +0200 Subject: [PATCH] FIX-WIP: result reading for badge creation ... again --- .github/workflows/evaluate_tree_packing.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/evaluate_tree_packing.yml b/.github/workflows/evaluate_tree_packing.yml index 70d18c6..2c3d89a 100644 --- a/.github/workflows/evaluate_tree_packing.yml +++ b/.github/workflows/evaluate_tree_packing.yml @@ -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