/.github/workflows/{ci-performance-benchmarks-release.yaml, ci-performance-benchmarks.yaml}: update emails, allow actor to specify email on workflow dispatch trigger

This commit is contained in:
Dustin Brown
2021-01-26 16:41:07 -08:00
parent 377de80b11
commit f4197c4e63
2 changed files with 18 additions and 3 deletions

View File

@@ -1,3 +1,5 @@
name: Benchmark Dolt vs MySQL
on:
repository_dispatch:
types: [ release-dolt ]
@@ -7,6 +9,10 @@ on:
description: 'SemVer format release tag, i.e. 0.23.4'
required: true
default: ''
email:
description: 'Email address to receive results'
required: true
default: ''
jobs:
set-version-actor:
@@ -69,10 +75,19 @@ jobs:
aws s3api get-object --bucket=performance-benchmarking-github-actions-results --key="$KEY" results.log
env:
KEY: ${{ steps.run-benchmarks.outputs.object-key }}
- name: Send Email
- name: Send Email on Release
if: ${{ github.event_name == 'repository_dispatch' }}
uses: ./.github/actions/ses-email-action
with:
region: us-west-2
version: ${{ needs.set-version-actor.outputs.version }}
toAddresses: '["dustin@dolthub.com"]'
toAddresses: '["${{ secrets.PERF_REPORTS_EMAIL_ADDRESS }}"]'
dataFile: ${{ format('{0}/results.log', github.workspace) }}
- name: Send Email
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: ./.github/actions/ses-email-action
with:
region: us-west-2
version: ${{ needs.set-version-actor.outputs.version }}
toAddresses: '["${{ github.event.inputs.email }}"]'
dataFile: ${{ format('{0}/results.log', github.workspace) }}

View File

@@ -1,4 +1,4 @@
name: Benchmark Dolt Performance
name: Benchmark Pull Requests
on:
pull_request: