Skip to content

Commit

Permalink
try fromJSON
Browse files Browse the repository at this point in the history
  • Loading branch information
broskoTT committed Nov 21, 2024
1 parent cc2056d commit eed10f5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-device.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ env:

jobs:
build:
timeout-minutes: ${{ inputs.timeout }}
# Due to parsing bug, fromJSON is used to convert string to number
timeout-minutes: ${{ fromJSON(inputs.timeout) }}
strategy:
fail-fast: false
matrix:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ on:

jobs:
build:
timeout-minutes: ${{ inputs.timeout }}
# Due to parsing bug, fromJSON is used to convert string to number
timeout-minutes: ${{ fromJSON(inputs.timeout) }}
strategy:
fail-fast: false
matrix:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ env:

jobs:
build:
timeout-minutes: ${{ inputs.timeout }}
# Due to parsing bug, fromJSON is used to convert string to number
timeout-minutes: ${{ fromJSON(inputs.timeout) }}
strategy:
fail-fast: false
matrix:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ env:

jobs:
test:
timeout-minutes: ${{ inputs.timeout }}
# Due to parsing bug, fromJSON is used to convert string to number
timeout-minutes: ${{ fromJSON(inputs.timeout) }}
strategy:
fail-fast: false
matrix:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test-runner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ on:
timeout:
required: true
description: 'The timeout for the job in minutes'
type: number
default: 10

jobs:
check-runners-host:
timeout-minutes: ${{ inputs.timeout }}
# Due to parsing bug, fromJSON is used to convert string to number
timeout-minutes: ${{ fromJSON(inputs.timeout) }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -57,7 +59,8 @@ jobs:
du -h --max-depth=1 | sort -rh
check-runners-docker:
timeout-minutes: ${{ inputs.timeout }}
# Due to parsing bug, fromJSON is used to convert string to number
timeout-minutes: ${{ fromJSON(inputs.timeout) }}
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit eed10f5

Please sign in to comment.