Skip to content

Workflow dispatch should allow ref to be passed in static-args #443

@lewis-jackson-bots

Description

@lewis-jackson-bots

Version

I'm using peter-evans/slash-command-dispatch@9bdcd7914ec1b75590b790b844aa3b8eee7c683a # v5.0.2.

Current Behaviour

If you use:

      - name: Slash Command Dispatch (workflow_dispatch)
        uses: peter-evans/slash-command-dispatch@9bdcd7914ec1b75590b790b844aa3b8eee7c683a # v5.0.2
        with:
          token: xxx
          permission: yyy
          commands: |
            playwright
          dispatch-type: workflow
          static-args: |
            ref=something

The workflow is dispatched as though ref was not passed, it defaults to the default branch main.

Desired Behaviour

I want to be able to set the ref named args with static-args. This would allow me to have PR comments always trigger the workflow logic from the current PR, so I can test a workflows logic changes.

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