Skip to content

YAML Alias Nodes break linting #404

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

Closed
harrydowning opened this issue Oct 12, 2024 · 1 comment
Closed

YAML Alias Nodes break linting #404

harrydowning opened this issue Oct 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@harrydowning
Copy link

Describe the bug
Using YAML Alias Nodes breaks linting:

  • Expected mapping end
  • Unexpected value 'steps'

To Reproduce
Steps to reproduce the behavior:

  1. With this workflow
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

Expected behavior
No linting errors.

Screenshots
image

Extension Version
v0.27.0

Additional context
N/A

@harrydowning
Copy link
Author

Nevermind, it seems Github actions don't even support anchors or aliases

@github-project-automation github-project-automation bot moved this from Backlog 🗒 to Done 💤 in GitHub Actions VS Code Extension Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant