Open IAMDAVID0921 opened 2 months ago
I can't fully understand your issue only from the code snippets, but I could not reproduce this from the following workflows.
main.yml
on: push
jobs:
Build-abc:
uses: ./.github/workflows/reusable_workflow.yml
run-abc-test:
needs: [Build-abc]
uses: ./.github/workflows/another_reusable_workflow.yml
with:
abc_value: ${{ needs.Build-abc.outputs.abc_version }}
reusable_workflow.yml
on:
workflow_call:
outputs:
abc_version:
description: "..."
value: "..."
jobs:
triage:
runs-on: ubuntu-latest
steps:
- run: echo reusable
another_reusable_workflow.yml
on:
workflow_call:
inputs:
abc_value:
description: "..."
type: string
jobs:
triage:
runs-on: ubuntu-latest
steps:
- run: echo another reusable
actionlint reported no error.
Please tell me entire workflows which can reproduce your issue.
For example, (All pseudo code) In Main workflow: we call reusable workflow like:
Then we want to use the abc_output from the reusable workflow as an input in another reusable workflow, we do something like:
This will make actionlint fail as
In .github/workflows/reusable_workflow.yml: