Skip to content

Support yaml anchors #560

@Jrc356

Description

@Jrc356

YAML anchors have finally dropped
actions/runner#1182 (comment)

I tried using them for some path triggers such as:

on:
  push:
    paths: &paths
      - "./path/to/file"
      - "./path/to/another/file"
  pull_request:
    paths: *paths

but actionlint yells about usage of the anchors:

"paths" section must be sequence node but got alias node with "" tag

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions