Skip to content

Branch name checks ignored as top level key #743

@steverep

Description

@steverep

Description:
From the current documentation, I have no idea how this config is supposed to behave:

my-label:
  - changed-files:
    - ...
  - head-branch:
    - ...

When I read the docs, I expect it to behave as if both were under any, i.e. changed-files || head-branch. However it instead seems to completely ignore the head-branch config.

Action version:
5.0.0

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:
See home-assistant/frontend#19321 where the action removed the "Dependencies" label despite the branch name matching. The debug log seems to indicate the branch name is not even checked:

https://github.com/home-assistant/frontend/actions/runs/7443800544/job/20458307412

Expected behavior:
Expect it to behave like any:

Actual behavior:
Ignores the head-branch check.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions