Skip to content

Input workflow arguments in wrong order #55

@parberge

Description

@parberge

Describe the bug
The input arguments isn't in the same order as the workflow file

To Reproduce
Steps to reproduce the behavior:

  1. Create this PoC github actions workflow
name: PoC workflow

on:
  workflow_dispatch:
    inputs:
      foo:
        description: "Required variable foo"
        required: true
      bar:
        description: "Required variable bar"
        required: true
      baz:
        description: "Optional variable baz"

jobs:
  poc:
    runs-on: ubuntu-latest

    steps:
      - name: Poc action
        run: |
          echo "Foo: ${{ github.event.inputs.foo }}"
          echo "Bar: ${{ github.event.inputs.bar }}"
          echo "Baz: ${{ github.event.inputs.baz }}"
  1. In workflow manager, click then "Run now" button on the above workflow
  2. Observe the input arguments order is different between the parsed file

Expected behavior
The arguments that the workflow file has should be in the same order

Screenshots
workflow-manager-bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions