File tree Expand file tree Collapse file tree 5 files changed +15
-3
lines changed
actions/common/validate-terminus-timeout Expand file tree Collapse file tree 5 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 11name : ' Validate TERMINUS_TIMEOUT_LIMIT'
22description : ' 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
37runs :
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"
Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments