Skip to content

A on.workflow_run.workflows containing + not supported #3763

Closed
@EnricoMi

Description

@EnricoMi

Describe the bug
A on.workflow_run.workflows value containing + fails with Encountered an issue parsing workflow trigger(s) "c++" in a workflow, even though such a workflow name is allowed.

To Reproduce
Steps to reproduce the behavior:

  1. Create the following workflow in .github/workflows/workflow_run.yml:
name: Workflow Run Issue

on:
  workflow_run:
    workflows: ['C++']
    types:
      - completed

jobs:
  job:
    name: job
    runs-on: ubuntu-latest
    steps:
      - run: true
        shell: bash
  1. Merge this to your default branch. Make sure you have another workflow that gets triggered on push event on your default branch before you push this workflow to the default branch.
  2. You will see in the Actions tab an Unknown event of an Unknown workflow:
    Image
  3. Click on that action run and you will see an annotation saying:
Encountered an issue parsing workflow trigger(s) "c++" in a workflow ".github/workflows/workflow_run.yml".

Expected behavior
The workflow_run should work with workflow names that contain +.

Runner Version and Platform

2.322.0

What's not working?

Image

Encountered an issue parsing workflow trigger(s) "c++" in a workflow ".github/workflows/workflow_run.yml".

Metadata

Metadata

Assignees

No one assigned

    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