Skip to content

Commit

Permalink
Revert "Use reusable workflows to trigger perf workflow (#2322)" (#2330)
Browse files Browse the repository at this point in the history
This reverts commit af35031.
  • Loading branch information
rapphil authored Sep 8, 2023
1 parent 2871cd5 commit ebe8533
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -808,8 +808,11 @@ jobs:
aws s3 cp $GITHUB_SHA.tar.gz s3://aws-otel-collector-release-candidate/$GITHUB_SHA.tar.gz
- name: Trigger performance test
uses: ./.github/workflows/perf.yml
secrets: inherit
uses: peter-evans/repository-dispatch@v2
with:
token: "${{ secrets.REPO_WRITE_ACCESS_TOKEN }}"
event-type: trigger-perf
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'

publish-ci-status:
runs-on: ubuntu-latest
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

name: 'Performance test'
on:
workflow_call:
repository_dispatch:
types: [trigger-perf]
workflow_dispatch:
inputs:
sha:
Expand Down Expand Up @@ -65,8 +66,8 @@ jobs:
aws-region: us-west-2

- name: Download candidate based on dispatch payload
if: github.event_name == 'workflow_call'
run: aws s3 cp "s3://aws-otel-collector-release-candidate/${{ github.sha }}.tar.gz" ./candidate.tar.gz
if: github.event_name == 'repository_dispatch'
run: aws s3 cp "s3://aws-otel-collector-release-candidate/${{ github.event.client_payload.sha }}.tar.gz" ./candidate.tar.gz

- name: Download candidate based on workflow dispatch input
if: github.event_name == 'workflow_dispatch'
Expand Down

0 comments on commit ebe8533

Please sign in to comment.