Skip to content

Commit

Permalink
Add Work Flow Dispatch To Soaking Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sethAmazon committed Nov 2, 2021
1 parent 9153ede commit 99a9205
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/soaking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ on:
# or we can manually trigger this workflow by using dispatch for debuging
repository_dispatch:
types: [bump-version]
workflow_dispatch:
inputs:
sha:
description: 'Commit Hash You Want To Soak Must Be The Full SHA'
required: true

env:
TF_VAR_aws_access_key_id: ${{ secrets.INTEG_TEST_AWS_KEY_ID }}
Expand Down Expand Up @@ -58,7 +63,8 @@ jobs:
commit_id: ${{ steps.get-testing-version.outputs.commit_id }}
steps:
- uses: actions/checkout@v2

with:
fetch-depth: 0
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand All @@ -68,7 +74,7 @@ jobs:

- id: downloadLatestCommit
name: Download Candidate from the latest commit
if: github.event_name != 'repository_dispatch'
if: github.event_name == 'schedule'
run: aws s3 cp "s3://aws-otel-collector-release-candidate/${{ github.sha }}.tar.gz" ./candidate.tar.gz

- name: Echo why download failed
Expand All @@ -78,6 +84,10 @@ jobs:
- name: Download Candidate base on dispatch payload
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 base on workflow dispatch payload
if: github.event_name == 'workflow_dispatch'
run: aws s3 cp "s3://aws-otel-collector-release-candidate/${{ github.event.inputs.sha }}.tar.gz" ./candidate.tar.gz

- name: uncompress the candidate package
run: tar -zxf ./candidate.tar.gz
Expand Down

0 comments on commit 99a9205

Please sign in to comment.