Running a script in docker environment

I’ve searched quite widely, but I cannot seem to find an answer, hence I’m asking this here.

For a CI job, I want to run a sequence of scripts inside a custom docker container provided at username/image:version. In a gitlab` CI, this looks like follows:

format:
  image: user/image:version
  script:
    - ci/bin/format
    - ci/bin/post_results 

How can I achieve this in github actions?

Thank you

Most likely by specifying a job container with jobs.<job_id>.container . Your run steps will then run in that container.