actions / runner

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

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

Closed jww3 closed 6 months ago

jww3 commented 6 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 6 months ago

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