actions / runner

The Runner for GitHub Actions :rocket:
https://github.com/features/actions
MIT License
4.65k stars 895 forks source link

Make it easy to install `git` on an Action Runner Image #3273

Closed jww3 closed 1 month ago

jww3 commented 2 months ago

The version of git (v2.34.1) associated with ubuntu:jammy is quite old at this point. Calling apt update out-of-the-box won't cause any newer version to be discovered.

This change allows users of the actions/runner container image to easily install more modern versions of git (e.g. v2.43.0) should they desire.

Note that we don't actually install git. We simply get the prerequisites out of the way.

Related Issues

jww3 commented 2 months ago

While we're at it, should we also perform these prerequisites to facilitate installation of the gh cli?