Projektstart
This commit is contained in:
30
backend/node_modules/light-my-request/.github/workflows/benchmark.yml
generated
vendored
Normal file
30
backend/node_modules/light-my-request/.github/workflows/benchmark.yml
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Benchmark PR
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types:
|
||||
- labeled
|
||||
|
||||
jobs:
|
||||
benchmark:
|
||||
if: ${{ github.event.label.name == 'benchmark' }}
|
||||
uses: fastify/workflows/.github/workflows/plugins-benchmark-pr.yml@main
|
||||
with:
|
||||
npm-script: benchmark
|
||||
|
||||
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.head.repo.full_name }}
|
||||
issue_number: ${{ github.event.pull_request.number }}
|
||||
name: benchmark
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user