Normally, my pipelines take 15 minutes to execute.
Recently, for some strange reasons, some pipelines take between 45 minutes and 6 hours to fail.
My question
You can change default time limit in two ways
Your scenario:
my-job: runs-on: ubuntu-latest timeout-minutes: 30