diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 1605a77fc..28861001c 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -16,9 +16,10 @@ jobs: run: pip install glances - name: Start Glances in background + id: start-glances run: | glances --export csv --export-csv-file glances.csv --quiet & - echo $! > GLANCES_PID + echo "pid=$!" >> "$GITHUB_OUTPUT" - name: Free disk space uses: jlumbroso/free-disk-space@v1.3.1 @@ -54,7 +55,7 @@ jobs: run: just install-dependencies - name: Stop Glances - run: kill $(cat GLANCES_PID) + run: kill ${{ steps.start-glances.outputs.pid }} - name: Upload Glances CSV uses: actions/upload-artifact@v4