vscode-github-actions
vscode-github-actions copied to clipboard
The `runner.environment` context is shown as invalid in this extension.
Describe the bug
When we use the runner.environment context listed in official document, this extension reports "Context access might be invalid".
To Reproduce Steps to reproduce the behavior:
- With this workflow '...'
steps:
- if: ${{ runner.environment == 'github-hosted' }}
run: echo "This is a ${{ runner.environment }} runner"
- Do this '...'
Open the "Problems" Panel.
- See error\
Context access might be invalid: environment
Expected behavior
The runner.environment context listed in official document can be recognized well by this extension.
Screenshots
Extension Version
v0.27.0
Additional context Add any other context about the problem here.
Duplicate of https://github.com/actions/languageservices/issues/78 which may be closed by merging of https://github.com/actions/languageservices/pull/79.