This simple github action will execute the provided code as a kotlin-main-kts script.
This is an alternative to the setup-kotlin optional script parameter, assuming kotlin is already installed (which is the default with ubuntu-latest).
Usage:
- uses: pgreze/kotlin-main-kts-run@main
with:
script: |
println("Hello from kotlin")