From a65f9c1279b59ba779b1ef00d350c740c4b46218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCrg=C3=BCn=20Day=C4=B1o=C4=9Flu?= Date: Sat, 8 Jun 2024 17:09:49 +0300 Subject: [PATCH] third time is the charm --- .github/workflows/bench.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 9864bfe..d4f430d 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -8,6 +8,22 @@ on: jobs: benchmark: if: ${{ github.event.label.name == 'benchmark' }} - uses: fastify/workflows/.github/workflows/plugins-benchmark-pr.yml@v3 + uses: fastify/workflows/.github/workflows/plugins-benchmark-pr.yml@main with: npm-script: bench + + remove-label: + if: "always()" + needs: benchmark + runs-on: ubuntu-latest + steps: + - name: Remove benchmark label + uses: octokit/request-action@v2.x + id: remove-label + with: + route: DELETE /repos/{repo}/issues/{issue_number}/labels/{name} + repo: ${{ github.event.pull_request.base.repo.full_name }} + issue_number: ${{ github.event.pull_request.number }} + name: benchmark + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}