From b5cef9c93e038eec104085db30f035a25668f78e Mon Sep 17 00:00:00 2001 From: Aki Kanellis Date: Thu, 4 Apr 2024 22:01:53 +0100 Subject: [PATCH] build: use absolute path --- .github/workflows/benchmark.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index c1e3dc01c..bb43630ca 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -18,8 +18,12 @@ jobs: - name: Start Glances in background id: start-glances run: | - glances --export csv --export-csv-file glances.csv --quiet & + CSV_FILE=$(pwd)/glances.csv + + glances --export=csv --export-csv-file=$CSV_FILE --quiet & + echo "pid=$!" >> "$GITHUB_OUTPUT" + echo "csv_path=$CSV_FILE" >> "$GITHUB_OUTPUT" - name: Free disk space uses: jlumbroso/free-disk-space@v1.3.1 @@ -61,7 +65,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: glances-metrics - path: ./glances.csv + path: ${{ steps.start-glances.outputs.csv_path }} # test-parallel-false: # name: "Test - Parallel: false"