diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 9ec4782f2..5c964dc8d 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -7,6 +7,9 @@ on: inputs: environment: type: string + publish: + type: boolean + default: false ref: required: true type: string @@ -62,7 +65,7 @@ jobs: # GitHub API token to make a commit comment github-token: ${{ secrets.GITHUB_TOKEN }} # Store the results and deploy GitHub pages automatically if the results are from main branch - auto-push: ${{ inputs.environment && 'false' || 'true' }} + auto-push: ${{ inputs.publish }} comment-on-alert: true max-items-in-chart: 20 @@ -108,7 +111,7 @@ jobs: # GitHub API token to make a commit comment github-token: ${{ secrets.GITHUB_TOKEN }} # Store the results and deploy GitHub pages automatically if the results are from main branch - auto-push: ${{ inputs.environment && 'false' || 'true' }} + auto-push: ${{ inputs.publish }} comment-on-alert: true max-items-in-chart: 20 @@ -156,6 +159,6 @@ jobs: # GitHub API token to make a commit comment github-token: ${{ secrets.GITHUB_TOKEN }} # Store the results and deploy GitHub pages automatically if the results are from main branch - auto-push: ${{ inputs.environment && 'false' || 'true' }} + auto-push: ${{ inputs.publish }} comment-on-alert: true max-items-in-chart: 20 diff --git a/.github/workflows/bench_main.yml b/.github/workflows/bench_main.yml index e74b9fba1..4c2702949 100644 --- a/.github/workflows/bench_main.yml +++ b/.github/workflows/bench_main.yml @@ -14,8 +14,10 @@ jobs: uses: ./.github/workflows/bench.yml with: ref: ${{ github.event.after }} + publish: ${{ github.event.ref == 'refs/heads/main' }} s3express-integration: name: Benchmarks (s3express) uses: ./.github/workflows/bench_s3express.yml with: ref: ${{ github.event.after }} + publish: ${{ github.event.ref == 'refs/heads/main' }} diff --git a/.github/workflows/bench_s3express.yml b/.github/workflows/bench_s3express.yml index 2eed28e72..e0c8def86 100644 --- a/.github/workflows/bench_s3express.yml +++ b/.github/workflows/bench_s3express.yml @@ -7,6 +7,9 @@ on: inputs: environment: type: string + publish: + type: boolean + default: false ref: required: true type: string @@ -63,7 +66,7 @@ jobs: # GitHub API token to make a commit comment github-token: ${{ secrets.GITHUB_TOKEN }} # Store the results and deploy GitHub pages automatically if the results are from main branch - auto-push: ${{ inputs.environment && 'false' || 'true' }} + auto-push: ${{ inputs.publish }} comment-on-alert: true max-items-in-chart: 20 @@ -109,6 +112,6 @@ jobs: # GitHub API token to make a commit comment github-token: ${{ secrets.GITHUB_TOKEN }} # Store the results and deploy GitHub pages automatically if the results are from main branch - auto-push: ${{ inputs.environment && 'false' || 'true' }} + auto-push: ${{ inputs.publish }} comment-on-alert: true max-items-in-chart: 20