diff --git a/.github/workflows/perf-test-comment.yml b/.github/workflows/perf-test-labeled.yml similarity index 64% rename from .github/workflows/perf-test-comment.yml rename to .github/workflows/perf-test-labeled.yml index 9e54818a3da25a8bea63c41cb4c86c41a3587e11..93bdb1c97ef8e772a291aa4c7a4fb7cfbaea01c1 100644 --- a/.github/workflows/perf-test-comment.yml +++ b/.github/workflows/perf-test-labeled.yml @@ -1,8 +1,8 @@ name: Perf test command on: - issue_comment: - types: [created] + pull_request: + types: [ labeled ] concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -10,7 +10,7 @@ concurrency: jobs: run-perf-test: - if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/perf') }} + if: ${{ github.event.label.name == 'Run-perf' }} uses: ./.github/workflows/perf-test.yml with: wait_for_uberjar: true diff --git a/.github/workflows/perf-test.yml b/.github/workflows/perf-test.yml index e0d7d60dc22ab9e7192121fed52c36bced87bbc6..4456b975ad14c40dc5762910353f548e3ab3a93f 100644 --- a/.github/workflows/perf-test.yml +++ b/.github/workflows/perf-test.yml @@ -75,7 +75,7 @@ jobs: launch_perf_test: needs: [ build ] runs-on: ubuntu-latest - name: PR Review ENV + name: Launch Perf Test permissions: id-token: write contents: read