diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 75bb72497..45ad453f2 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -23,14 +23,6 @@ jobs: - name: Checkout sources uses: actions/checkout@v4 - - uses: actions/create-github-app-token@v1 - id: app-token - with: - app-id: ${{ secrets.GH_APP_SAS_APP_ID }} - private-key: ${{ secrets.GH_APP_SAS_APP_KEY }} - - - run: apt-get update && apt-get install -y git - - name: benchmarks run: | yarn --immutable @@ -45,6 +37,27 @@ jobs: name: benchmarks path: ./artifacts + benchmark-publish: + name: benchmark publish + runs-on: ubuntu-latest + needs: [benchmark] + environment: master_n_tags + steps: + - name: Checkout sources + uses: actions/checkout@v4 + + - uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ secrets.GH_APP_SAS_APP_ID }} + private-key: ${{ secrets.GH_APP_SAS_APP_KEY }} + + - name: download artifacts + uses: actions/download-artifact@v3 + with: + name: benchmarks + path: ./artifacts + - name: Modify benches result for benhcmark action run: ./scripts/ci/benchmarks/generate_benchmark_result.sh artifacts/benchmarks.txt > artifacts/benchmarks.json