Skip to content

Commit 0067879

Browse files
authored

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/soak-testing.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
test_duration_minutes:
1414
description: 'The duration of the Soak Tests in minutes.'
1515
required: true
16-
default: 300
16+
default: "300"
1717
schedule:
1818
- cron: '0 15 * * *'
1919
env:
@@ -53,16 +53,20 @@ jobs:
5353
# MARK: - GitHub Workflow Event Type Specific Values
5454

5555
- name: Use INPUT as commit SHA
56+
env:
57+
TARGET_SHA: ${{ github.event.inputs.target_commit_sha }}
5658
if: ${{ github.event_name == 'workflow_dispatch' }}
5759
run: |
58-
echo "TARGET_SHA=${{ github.event.inputs.target_commit_sha }}" | tee --append $GITHUB_ENV;
60+
echo "$TARGET_SHA" | tee --append $GITHUB_ENV;
5961
- name: Use LATEST as commit SHA
6062
if: ${{ github.event_name != 'workflow_dispatch' }}
6163
run: |
6264
echo "TARGET_SHA=${{ github.sha }}" | tee --append $GITHUB_ENV;
6365
- name: Configure Performance Test Duration
66+
env:
67+
TEST_DURATION_MINUTES: ${{ github.event.inputs.test_duration_minutes || env.DEFAULT_TEST_DURATION_MINUTES }}
6468
run: |
65-
echo "TEST_DURATION_MINUTES=${{ github.event.inputs.test_duration_minutes || env.DEFAULT_TEST_DURATION_MINUTES }}" | tee --append $GITHUB_ENV;
69+
echo "$TEST_DURATION_MINUTES" | tee --append $GITHUB_ENV;
6670
- name: Clone This Repo @ ${{ env.TARGET_SHA }}
6771
uses: actions/checkout@v3
6872
with:

0 commit comments

Comments
 (0)