Skip to content

Commit 11df0dd

Browse files
Issue #990: Add TERMINUS_TIMEOUT_LIMIT as input. (#992)
* Issue #990: Add TERMINUS_TIMEOUT_LIMIT as input. * Issue #990: Use default value if input is empty.
1 parent 2b276f0 commit 11df0dd

File tree

5 files changed

+15
-3
lines changed

5 files changed

+15
-3
lines changed
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
name: 'Validate TERMINUS_TIMEOUT_LIMIT'
22
description: 'Validates and sets the TERMINUS_TIMEOUT_LIMIT environment variable'
3+
inputs:
4+
terminus_timeout_limit:
5+
description: 'Timeout in seconds for Terminus'
6+
required: false
37
runs:
48
using: "composite"
59
steps:
610
- name: Validate TERMINUS_TIMEOUT_LIMIT
11+
shell: bash
712
run: |
8-
TIMEOUT_LIMIT="${{ vars.TERMINUS_TIMEOUT_LIMIT || '600' }}"
13+
TIMEOUT_LIMIT="${{ inputs.terminus_timeout_limit || '600' }}"
914
if ! [[ "$TIMEOUT_LIMIT" =~ ^[0-9]+$ ]]; then
1015
echo "::error::TERMINUS_TIMEOUT_LIMIT must be a number. It represents the number of seconds that terminus will wait until timeout. Current value: $TIMEOUT_LIMIT"
1116
exit 1
1217
fi
13-
echo "TERMINUS_TIMEOUT_LIMIT=$TIMEOUT_LIMIT" >> $GITHUB_ENV
14-
shell: bash
18+
echo "TERMINUS_TIMEOUT_LIMIT=$TIMEOUT_LIMIT" >> "$GITHUB_ENV"

scaffold/github/workflows/PantheonReviewApps.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
- uses: ./.github/actions/drainpipe/set-env
3737

3838
- uses: ./.github/actions/drainpipe/validate-terminus-timeout
39+
with:
40+
terminus_timeout_limit: ${{ vars.TERMINUS_TIMEOUT_LIMIT }}
3941

4042
- uses: ./.github/actions/drainpipe/setup-git
4143
with:

scaffold/github/workflows/PantheonReviewAppsDDEV.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
- uses: ./.github/actions/drainpipe/set-env
2424

2525
- uses: ./.github/actions/drainpipe/validate-terminus-timeout
26+
with:
27+
terminus_timeout_limit: ${{ vars.TERMINUS_TIMEOUT_LIMIT }}
2628

2729
- name: Install and Start DDEV
2830
uses: ./.github/actions/drainpipe/ddev

scaffold/github/workflows/PantheonReviewAppsManual.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535
- uses: ./.github/actions/drainpipe/set-env
3636

3737
- uses: ./.github/actions/drainpipe/validate-terminus-timeout
38+
with:
39+
terminus_timeout_limit: ${{ vars.TERMINUS_TIMEOUT_LIMIT }}
3840

3941
- uses: ./.github/actions/drainpipe/setup-git
4042
with:

scaffold/github/workflows/PantheonReviewAppsManualDDEV.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
- uses: ./.github/actions/drainpipe/set-env
2323

2424
- uses: ./.github/actions/drainpipe/validate-terminus-timeout
25+
with:
26+
terminus_timeout_limit: ${{ vars.TERMINUS_TIMEOUT_LIMIT }}
2527

2628
- name: Install and Start DDEV
2729
uses: ./.github/actions/drainpipe/ddev

0 commit comments

Comments
 (0)