In your repository with workflow file, in .yml

simply change runs-on: ubuntu-20.04

to runs-on: ubuntu-latest

this should automatically change it to ubuntu 24 #8

actions/runner-images#11101