diff options
author | Reinier van der Leer <pwuts@agpt.co> | 2024-02-20 10:35:14 +0100 |
---|---|---|
committer | Reinier van der Leer <pwuts@agpt.co> | 2024-02-20 10:35:14 +0100 |
commit | 1079d716994b9f9aac0cd77af1e2a1d15ac2b41a (patch) | |
tree | f8215b451416ebd588475b097772da3653ddba26 | |
parent | feat(ci/benchmark): Generate step summary from benchmark report (diff) | |
download | Auto-GPT-1079d716994b9f9aac0cd77af1e2a1d15ac2b41a.tar.gz Auto-GPT-1079d716994b9f9aac0cd77af1e2a1d15ac2b41a.tar.bz2 Auto-GPT-1079d716994b9f9aac0cd77af1e2a1d15ac2b41a.zip |
fix(ci/benchmark): Unbreak "Push reports to data branch" step
The `report_subfolder` variable was being populated with two identical lines, because there will be two untracked files in the folder, resulting in the same dirname.
This caused later commands using that variable to fail. Fix is to `sort -u` before storing the value to `report_subfolder`.
-rw-r--r-- | .github/workflows/autogpts-benchmark.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/autogpts-benchmark.yml b/.github/workflows/autogpts-benchmark.yml index 38f7803d9..6bac65583 100644 --- a/.github/workflows/autogpts-benchmark.yml +++ b/.github/workflows/autogpts-benchmark.yml @@ -75,7 +75,8 @@ jobs: report_subfolder=$(find ${{ env.REPORTS_FOLDER }} -type f -name 'report.json' \ | xargs -I {} dirname {} \ | xargs -I {} git ls-files --others --exclude-standard {} \ - | xargs -I {} dirname {}) + | xargs -I {} dirname {} \ + | sort -u) json_report_file="$report_subfolder/report.json" # Convert JSON report to Markdown |