YunaBraska / github-workflow-plugin

Your Ultimate Wingman for GitHub Workflows and Actions! 🚀
https://github.com/YunaBraska/github-workflow-plugin
Apache License 2.0
47 stars 11 forks source link

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

Open enobrev opened 8 months ago

enobrev commented 8 months ago

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

YunaBraska commented 8 months ago

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

YunaBraska commented 7 months ago

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.