name: Check for performance_approved label on: pull_request: paths: - 'go/**' branches: [main] types: [opened, labeled, unlabeled, synchronize] jobs: label: if: github.actor != 'dependabot[bot]' runs-on: ubuntu-latest permissions: issues: write pull-requests: write steps: - uses: mheap/github-action-required-labels@v5 with: mode: exactly count: 1 labels: "performance_approved" add_comment: true message: "\nThis PR is being tested for performance. Please allow ~25 mins for this to complete. If this PR does not result in a performance regression, the `performance_approved` label will be automatically added to this PR."