[Core feature request] Support operators for type-safe expressions
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start by reading the type-safe expr API and the linked GitHub Actions expressions operator documentation. Compare the proposed explicit functions, operator overloading, and textual input for unsupported contexts such as step outcomes and matrix values; done means the API can represent the example expression without falling back to plain strings.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What feature do you need?
https://docs.github.com/en/actions/learn-github-actions/expressions#operators
It would be nice if you could construct more complex expressions using operators with the type-safe expr API.
One way would be to model them as explicit functions like expr { and(always(), success()) } to get ${{ always() && success() }}.
An even nicer way would of course be if operator overloading is used, so that you can actually do expr { always() && success() }} instead.
Those ways also need to support some way of textual input to support not yet supported contexts like step outcome, or matrix values.
Do you have an example usage?
if: always() && (steps.execute_action.outcome == 'success')
Is there a workaround for not having this feature? If yes, please describe it.
Work-around is to not use the type-safe API, but simple strings.
- 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
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Telegram !!! Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Xposed-Modules-Repo/com.fuck.iab#24 · 3 commenti · 1 reazione ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
SimonHalvdansson/Harmonic-HN#361 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
johanhaleby/occurrent#1120 ·