I just submitted that feature request to have an official GitHub Action for kotlin scripts because I'm already fed-up after trying to write simple retry logic in a shell script for a flaky gradle task (caused by network or thrid-party API responsiveness issue (namely, bintray).
https://youtrack.jetbrains.com/issue/KT-40767
Please, vote if you'd like that.