Hi. I’m trying to template a yaml for teams to perform builds across several repos.
I want to let people chose how much time a task should run before it timeouts as size of projects can be different.
Using:
name: Build Something
on:
workflow_call:
inputs:
build-timeout-minutes:
type: number
default: 30
...
jobs:
build:
name: Build...
...
- name: Build image
uses: docker/build-push-action@v2
timeout-minutes: ${{ fromJSON(inputs.build-timeout-minutes) }}
Runner version: 2.289.2
I tried several options to call this input value, but no luck. Looks like actions won’t recognize input value in job parameters. I can properly use inputs after “with:” and “env:” blocks in job parameters however:
- name: Another step
...
with:
context: ${{ inputs.docker-context }}