Skip to content

Commit

Permalink
feat: make timeout dynamic based on timeout input var
Browse files Browse the repository at this point in the history
  • Loading branch information
barkerl committed Jan 9, 2025
1 parent 89eea1c commit a0e8a67
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/e2etest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,21 @@ jobs:
buildtime=$(date +"%Y%m%d%H%M%S")
echo "job_name=e2e-$buildtime-${{ github.run_id }}" >> $GITHUB_OUTPUT
Calculate-Timeout:
name: Calculate Timeout
runs-on: ubuntu-latest
outputs:
timeout: ${{ steps.set-timeout.outputs.timeout }}
steps:
- name: Set Timeout
id: set-timeout
run: |
echo "timeout=$(( ${{ inputs.batch_timeout_minutes }} + 5 ))" >> $GITHUB_OUTPUT
run-batch:
name: Run Tests on AWS Batch
timeout-minutes: ${{ inputs.batch_timeout_minutes }}
needs: create-job-name
timeout-minutes: ${{ needs.Calculate-Timeout.outputs.timeout }}
needs: [create-job-name, Calculate-Timeout]
runs-on: ubuntu-latest
outputs:
job_id: ${{ steps.submit-job.outputs.job_id }}
Expand Down

0 comments on commit a0e8a67

Please sign in to comment.