[Core feature request] Access workflow inputs in Kotlin-based step
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 42/100
調査の方向性
Start by reading the linked GitHub Actions inputs context documentation, then trace how Kotlin-based workflow steps currently expose context and environment data. Implement access matching the example inputs["myInput"] and verify that workflow inputs are available without the JSON environment workaround.
索引モデルが issue の本文から書いたものです。
説明
What feature do you need?
https://docs.github.com/en/enterprise-cloud@latest/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs#inputs-context
The access could be even type-unsafe for now (just strings).
Do you have an example usage?
run {
println(inputs["myInput"])
}
Is there a workaround for not having this feature? If yes, please describe it.
I'm currently doing something pretty ugly:
val githubContextJson = System.getenv("GHWKT_GITHUB_CONTEXT_JSON")!!
val version: String = Json.parseToJsonElement(githubContextJson)
.jsonObject["event"]
?.jsonObject?.get("inputs")
?.jsonObject?.get("version")
?.jsonPrimitive?.contentOrNull
?: error("Version couldn't be extracted from input")
- 主要言語
- Kotlin
- スター
- 665
- フォーク
- 30
- 平均マージ
- 4日 19時間
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
typesafegithub/github-workflows-kt のほかの issue
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
typesafegithub/github-workflows-kt#2389 · コメント 7 件 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
typesafegithub/github-workflows-kt#2368 · コメント 1 件 ·
-
problem
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
typesafegithub/github-workflows-kt#2348 · コメント 2 件 ·
-
Use a lib to interact with GitHub対応中かも @LeoColman が 527 日前に担当しました。 オープンoperational
typesafegithub/github-workflows-kt#1884 · 担当者 1 名 ·
-
problem
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
typesafegithub/github-workflows-kt#1864 · コメント 5 件 ·
typesafegithub/github-workflows-kt の issue をすべて見る
似ている issue
-
标题之间有空格时,直接空一整行オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
CeuiLiSA/Pixiv-Shaft#1200 ·
メンテナーはふだん 1 日以内に返信
-
Android 17 supportオープンandroid bug
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
librepods-org/librepods#826 ·
メンテナーはふだん 1 日以内に返信
-
bug status: needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
LawnchairLauncher/lawnchair#7360 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
Kotlin/kotlinx-kover#836 ·
-
Needs Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
ankidroid/Anki-Android#22298 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信