Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

needs.<job_id>.result not currently supported #54

Open
enobrev opened this issue Mar 11, 2024 · 2 comments
Open

needs.<job_id>.result not currently supported #54

enobrev opened this issue Mar 11, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@enobrev
Copy link

enobrev commented Mar 11, 2024

Is your feature request related to a problem? Please describe.
When trying to reference the result of a needs object, I get a red squiggle with an error of "Incomplete statement [needs.<job_id>.result]"

Describe the solution you'd like
Add support for needs.<job_id>.result

Describe alternatives you've considered
I'm not sure there's any alternatives. I've been ignoring the red squiggle for the time being.

Operating System
Ubuntu 22.04.4 LTS

Project Version
3.2.1

Additional context
Here is a test workflow to demonstrate the issue:

name: Bug Report

on:
  workflow_dispatch:

jobs:
  some_job:
    name: Previous Job
    runs-on: ubuntu-latest

    outputs:
      test: ${{ steps.vars.outputs.test }}

    steps:
      - name: Test Vars
        id: vars
        run: echo "test=1" >> $GITHUB_OUTPUT

  next_job:
    needs: [some_job]
    name: Reference Job
    runs-on: ubuntu-latest

    steps:
      - name: Slack Message Vars
        id: vars
        run: |
          echo "Result: ${{ needs.some_job.result }}"
          echo "Value: ${{ needs.some_job.outputs.test }}"

And I'm attaching a screenshot to show the squiggle. As you can see, the outputs works correctly. It's just the result that's missing.

Screenshot from 2024-03-11 15-32-43

@enobrev enobrev added the enhancement New feature or request label Mar 11, 2024
@YunaBraska
Copy link
Owner

Ah, good point! Yes, there are some features which I didn't implement yet.
I will implement that in the next release round 👍

@YunaBraska
Copy link
Owner

Due to significant changes introduced by JetBrains, my plugin now faces numerous disruptions. After dedicating substantial effort to this project last year, I find myself needing assistance to move forward. If you're interested in contributing or know someone who might be, please feel free to get involved. I am available to provide guidance through the intricacies of the plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants