Upload benchmark results to S3 when the check step failed #2072
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Benchmarks (PR) | |
on: | |
pull_request_target: | |
branches: [ "main" ] | |
types: [ labeled, opened, reopened, synchronize ] | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
integration: | |
name: Benchmarks | |
uses: ./.github/workflows/bench.yml | |
if: ${{ contains(github.event.pull_request.labels.*.name, 'performance') }} | |
with: | |
environment: PR benchmarks | |
ref: ${{ github.event.pull_request.head.sha }} | |
# store results with prefix defined by PR id (github.event.number) | |
s3_bench_results_prefix: ${{ github.event_name == 'pull_request_target' && format('results/{0}/s3_standard', github.event.number) || null }} | |
s3express-integration: | |
name: Benchmarks (s3express) | |
uses: ./.github/workflows/bench_s3express.yml | |
if: ${{ contains(github.event.pull_request.labels.*.name, 'performance') }} | |
with: | |
environment: PR benchmarks | |
ref: ${{ github.event.pull_request.head.sha }} | |
# store results with prefix defined by PR id (github.event.number) | |
s3_bench_results_prefix: ${{ github.event_name == 'pull_request_target' && format('results/{0}/s3_express', github.event.number) || null }} |