cschleiden / vscode-github-actions

Simple, unofficial extension to view GitHub Actions workflows and runs in VS Code
https://marketplace.visualstudio.com/items?itemName=cschleiden.vscode-github-actions
MIT License
302 stars 35 forks source link

When a step `uses` an action, read `outputs` from `action.yml` #175

Closed dca123 closed 1 year ago

dca123 commented 2 years ago

I'm setting the environment via

environment:
name: Development
url: ${{ steps.deploy.outputs.url }}

My deploy step looks like

name: Deploy to Google Cloud
id: deploy
uses: google-github-actions/deploy-cloudrun@v0

I get the following error Unknown context access: 'steps.deploy.outputs.url'. The deployment works perfectly and the URL is assigned as expected. This is only a linting issue.

Is there any way I could fix this ?

Regards, Dev

cschleiden commented 2 years ago

Thanks for reporting this.

Actions declare their outputs in the action.yml file. For deploy-cloudrun that would be here: https://github.com/google-github-actions/deploy-cloudrun/blob/main/action.yml#L159-L161

Today the extension doesn't parse that part of action.yml for referenced actions and therefore doesn't know the outputs. We should add that.

cschleiden commented 2 years ago

Updated the title and resolved another issue as duplicate since here we have more information.

cschleiden commented 1 year ago

This is now implemented.

twelvelabs commented 1 year ago

@cschleiden can you please point me to where this was fixed? I don't see any recent commits in main.