diff --git a/.github/workflows/benchmark.yaml b/.github/workflows/benchmark.yaml index 6742b2e..ee2bce5 100644 --- a/.github/workflows/benchmark.yaml +++ b/.github/workflows/benchmark.yaml @@ -11,7 +11,7 @@ jobs: - name: take benchmarks run: | mkdir -p document - ./benchmark/gendoc.sh ${{ github.event.issue.number }} | tee document/Benchmarks.md + ./benchmark/gendoc.sh ${{ github.event.number }} | tee document/Benchmarks.md - name: upload to wiki uses: SwiftDocOrg/github-wiki-publish-action@v1 with: diff --git a/benchmark/gendoc.sh b/benchmark/gendoc.sh index 5bebc74..bc0fe11 100755 --- a/benchmark/gendoc.sh +++ b/benchmark/gendoc.sh @@ -1,6 +1,6 @@ #!/bin/bash -COMMIT="$1" +PRNUM="$1" TARGETS="i386-linux-handwritten c python" TIMEFORMAT='%U' CPU_MODEL=`cat /proc/cpuinfo | grep -m1 'model name' | cut -d: -f2 | sed "s/^ *//g"` @@ -36,7 +36,7 @@ function generate-table { echo "# Environment" echo -echo "- Commit: $COMMIT" +echo "- Pull Request: #$PRNUM" echo "- $CPU_MODEL" echo "- $MEM_SIZE" echo "- $UNAME"