[Core feature request] Add support to Workflow Dispatch Inputs
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start with GitHub's workflow_dispatch inputs syntax and the existing WorkflowDispatch/Input usage shown in the issue. Trace how workflow triggers and environment expressions are modeled, then compare generated output with the linked kotest example. Done means callers can declare and reference dispatch inputs without the event.inputs workaround.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Discussed in Kotlin's Slack: https://app.slack.com/client/T09229ZC6/C02UUATR7RC/thread/C02UUATR7RC-1682902161.628869
What feature do you need?
Workflows Dispatch Inputs:
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_dispatchinputs
Do you have an example usage?
env:
RELEASE_VERSION: ${{ inputs.version }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
GRADLE_OPTS: -Dorg.gradle.configureondemand=true -Dorg.gradle.parallel=false -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:MaxMetaspaceSize=756m -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"
Is there a workaround for not having this feature? If yes, please describe it.
Yes. One can use WorkflowDispatch normally, and use expr { github["event.inputs.XXXX"]!! } to get the value when they need it.
workflow(
name = "Publish",
on = listOf(
WorkflowDispatch(
mapOf("RELEASE_VERSION" to Input("The release version", true, String))
)
),
sourceFile = __FILE__.toPath(),
env = linkedMapOf(
"OSSRH_USERNAME" to expr { OSSRH_USERNAME },
"OSSRH_PASSWORD" to expr { OSSRH_PASSWORD },
"ORG_GRADLE_PROJECT_signingKey" to expr { ORG_GRADLE_PROJECT_signingKey },
"ORG_GRADLE_PROJECT_signingPassword" to expr { ORG_GRADLE_PROJECT_signingPassword },
"RELEASE_VERSION" to expr { github["event.inputs.version"]!! }
)
)
- Lingua principale
- Kotlin
- Stelle
- 664
- Fork
- 30
- Merge medio
- 4g 19h
- PR unite (30g)
- 5
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di typesafegithub/github-workflows-kt
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
typesafegithub/github-workflows-kt#2389 · 7 commenti ·
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
typesafegithub/github-workflows-kt#2368 · 1 commento ·
-
problem
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
typesafegithub/github-workflows-kt#2348 · 2 commenti ·
-
operational
typesafegithub/github-workflows-kt#1884 · 1 assegnatario ·
-
problem
Difficoltà 3/5 1-2 giorni Idoneità per principianti 30/100
typesafegithub/github-workflows-kt#1864 · 5 commenti ·
Tutte le issue di typesafegithub/github-workflows-kt
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Good First Issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
ankidroid/Anki-Android#21942 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
libre-tube/LibreTube#8781 · 1 commento ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
MetrolistGroup/Metrolist#4396 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100