Invalid branches patterns error, when branch contains "-" separator

I want to trigger an action on pull request only when my branch starts with a specific pattern (which uses a dash separator).

This action should run only on the branch that starts with <code>-<numbers> like:

  1. ABC-000, CODE-123,
  2. also CODE-123-fix will be nice to have, but at this moment I need only the first cases.
name: PR update
    types: [opened]
    - '[a-z]+-[0-9]+'

I received invalid branches patterns here.

Hi @ritaly, welcome to the GitHub Support Community! Can you post a link to the repository that you’re running this workflow in? I copied and pasted your exact pattern here and couldn’t reproduce it—my workflow ran and completed successfully. :thinking: