Act: 'needs' is not defined

Created on 25 Jun 2020  路  4Comments  路  Source: nektos/act

Error ERRO[0002] Unable to interpolate string 'echo ${{ needs.pre.output1 }}' - [ReferenceError: 'needs' is not defined] when try to following workflow:

jobs:
  pre:
    runs-on: ubuntu-latest
    steps:
      - run: echo '::set-env name=VAR1::value1'
    outputs:
      output1: ${{ env.VAR1 }}

  job1:
    runs-on: ubuntu-latest
    needs: [pre]
    steps:
      - run: echo ${{ needs.pre.outputs.output1 }}

This syntax is working in workflow ran by Github Actions, as we do use it in our project's CI.

areworkflow kinfeature-request

Most helpful comment

+1

All 4 comments

+1

any workaround for this?

This feature would be really helpful

Issue is stale and will be closed in 7 days unless there is new activity

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TobiasBales picture TobiasBales  路  6Comments

bltavares picture bltavares  路  5Comments

kenorb picture kenorb  路  5Comments

helaili picture helaili  路  3Comments

Applelo picture Applelo  路  5Comments