<https://github.com/krzema12/github-actions-kotlin...
# github-workflows-kt
p
kudos to @jmfayard and @Nikky 🙂
n
never tried to use underscores in files in this context, i can try that in a minute
p
ok, my goal was to place this script at the top of file lists, so that it's not mixed with workflows. Maybe another character could give similar result and work, but it's still interesting to check why the underscore doesn't work đŸ€”
what's interesting, it works fine on GitHub 🙂
n
i just tried scriptfile
_test___workflow.main.kts
generating
_test_workflow.yaml
and it works fine (on linux)
p
so weird... maybe Kotlin compiler caches contents of the scripts? could you now rename the file and see if it catches the rename?
n
it certainly failed a few times because in my scripts i am importing function from a object in itself (because scripting is picky about top level functions) but the output is as expected once it worked..
p
ok, thanks for checking, I'll play with it later
some other changes than in
sourceFile
are also not taken into account, so it looks like some kind of Kotlin caching misbehaves
+1 please, will help with visibility 😄