Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
list

GitHub Action

Issue Forms Dropdown Options

v1.0.0-rc.1

Issue Forms Dropdown Options

list

Issue Forms Dropdown Options

Populates options for a version dropdown issue forms element

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Issue Forms Dropdown Options

uses: ShaMan123/[email protected]

Learn more about this action in ShaMan123/gha-form-dropdown-options

Choose a version

Issue Forms Dropdown Options

GitHub Marketplace Sponsor ShaMan123

🧪 Test 🚀 Update Bug Report

A github action populating options for an issue forms dropdown.

Looking for a Version dropdown?

Checkout issue-forms-version-dropdown

Configuring

Follow this workflow.
Replace the uses: ./ directive to point to published action.

Refer to the inputs and outputs definitions in the spec.

Conflicting Runs

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.

Creating a PR

Consider using create-pull-request 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.

Live

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.