1

enter image description here

enter image description here

enter image description here

I have the following github code, it doesn't take input parameters, I just need it to be able to execute the action on github when I want.

But github marks me as a warning, how can I do?

on:
  workflow_dispatch:
    inputs:

name: Build
jobs:
....
Paul
  • 3,644
  • 9
  • 47
  • 113

2 Answers2

1

Remove the inputs line altogether:

on:
  workflow_dispatch:

name: Build
...

Mind that the name of the branch will still be an input parameter, selectable in the GitHub UI.

Vadim Belyaev
  • 2,456
  • 2
  • 18
  • 23
1

I just need it to be able to execute the action on github when I want.

That sounds like a manual trigger: Manually running a workflow.

on: workflow_dispatch

(ref: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch)

It shows its default form with no further elements like the inputs you have. Just remove them.

hakre
  • 193,403
  • 52
  • 435
  • 836