vscode-github-actions
vscode-github-actions copied to clipboard
Support YAML anchors and aliases
Is your feature request related to a problem? Please describe. Once github actions supports anchors and aliases (see https://github.com/actions/runner/issues/1182) this extension will need to be updated accordingly. Currently, using anchors and aliases results in errors:
Describe the solution you'd like Using anchors and aliases should not result in these linting errors.
Additional context
name: pipeline
on: push
jobs:
job1:
runs-on: ubuntu-latest
env: &env
ENV1: env1
ENV2: env2
steps:
- run: exit 0
job2:
runs-on: ubuntu-latest
env: *env
steps:
- run: exit 0
Aaand the support in GHA has been added: https://github.com/actions/runner/issues/1182#issuecomment-3150797791 🚀
Getting this error when using YAML anchors:
Expected a scalar value, a sequence, or a mapping