Open rcmdnk opened 1 year ago
I wonder if its using the composite action's set of inputs
instead? π€
As a potential workaround, you could try using github.event.inputs.continue
here instead since you're trying to get a workflow-level input.
Is this really solved? I can't get this to work in my pipeline yet
EDIT: This solution https://github.com/actions/runner/issues/1492 works π
Describe the bug When
continue-on-error
flag is used on composite actions, it seems the variables are passed to the composite actions and evaluated in there.As a result, if the workflow uses the
inputs
variables for thecontinue-on-error
, the variable is not recognized in the comoposite action.To Reproduce Steps to reproduce the behavior:
on: workflow_dispatch: inputs: continue: type: boolean required: false default: false
jobs:
test: runs-on: ubuntu-latest steps:
Expected behavior If
inputs.continue
is true, all steps must be executed.Runner Version and Platform
ubuntu-latest, macos-12
What's not working?
The workflow stops before
last check
.Job Log Output
The step continue-on-error flag with
inputs.continue
onuses: rcmdnk/fail-action@main
shows error like:and it stops there and
last check
is not executed.Example run: https://github.com/rcmdnk/composite-continue-on-error-test/actions/runs/4095530933