Skip to content

Doesn't detect missing needs #99

@bytesnz

Description

@bytesnz

A slightly more complicated one, but it would be good if it could detect missing needs from needs context use. You could also do the same for the steps context

name: cyclic-test
on:
  pull: {}
jobs:
  test:
    runs-on: ubuntu-latest
    outputs:
      test: ${{ steps.step1.test }}
    steps:
      - id: step1
        run: echo test=hello >> "$GITHUB_OUTPUT"
  test1:
    runs-on: ubuntu-latest
    outputs:
      # step missing
      test: ${{ steps.step1.test }}
    steps:
      # need missing
      - run: echo ${{ needs.test.outputs.test }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    pr-welcomeThis would be a good fix/feature, but the maintainer isn't planning on doing the work

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions