GitHub Action
Issue Forms Dropdown Options
A github action populating options for an issue forms dropdown.
Follow this workflow.
Replace the uses: ./
directive to point to .
Refer to the inputs
and outputs
definitions in the spec.
Since workflows run in concurrency you may encounter a case in which a number of runs are trying to modify and commit the same file.
This might result in a merge conflict.
If that is the case the action will fail.
Consider the following:
The labels of this repo are populated into a dropdown (see Live).
Modifying a label more than once in a short period of time (before the previous runs completed) will fail to update the form.
Consider handling failures in a consequent step or use the dry_run
option to prevent the action from trying to commit in the first place and handle that yourself.
Consider using in order to commit changes in an orderly and safe fashion to a generate PR.
Refer to the update-long-report
job in this workflow to see a usage example and to PR #5.
Don't forget to use the dry_run
option.
This repo uses the action it defines 🚀.
Take a look at the dropdowns populated into the issue template using this workflow.
See the bot in action.