machulav / ec2-github-runner

On-demand self-hosted AWS EC2 runner for GitHub Actions
MIT License
745 stars 331 forks source link

Feat Request: Can we add support for picking the version of the runner ${config.input.runnerVersion} #205

Open stecullum opened 3 hours ago

stecullum commented 3 hours ago

Currently the Runner version is hard coded

curl -O -L https://github.com/actions/runner/releases/download/v2.313.0/actions-runner-linux-${RUNNER_ARCH}-2.313.0.tar.gz'

Can we add support to allow us to choose the version ( its currently at 2.321.0 )

eg...

runner-version: 2.321.0

curl -O -L https://github.com/actions/runner/releases/download/v${config.input.runnerVersion}/actions-runner-linux-${RUNNER_ARCH}-${config.input.runnerVersion}.tar.gz'

Preen commented 3 hours ago

@stecullum Sounds like a good idea, but always have a default fallback. I dont have the time to do this right now, but if you do and send in a pull request I will review it and merge it in everything works as it should.