vscode-github-actions icon indicating copy to clipboard operation
vscode-github-actions copied to clipboard

Support YAML anchors and aliases

Open harrydowning opened this issue 1 year ago • 2 comments

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:

image

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

harrydowning avatar Oct 12 '24 14:10 harrydowning

Aaand the support in GHA has been added: https://github.com/actions/runner/issues/1182#issuecomment-3150797791 🚀

janbrasna avatar Sep 01 '25 14:09 janbrasna

Getting this error when using YAML anchors:

Expected a scalar value, a sequence, or a mapping

PaulRBerg avatar Sep 09 '25 22:09 PaulRBerg