Skip to content

Add timeout workflow #1

Add timeout workflow

Add timeout workflow #1

Workflow file for this run

name: Testing timeout
on:
workflow_dispatch:
push:
pull_request:
jobs:
timeout:
runs-on: ubuntu-latest
steps:
- name: Write file and sleep Sleep for 2 minutes
run: echo "hello there" > hello.txt && sleep 120
timeout-minutes: 1
- name: upload hello.txt
uses: actions/upload-artifact@v4
with:
name: hello.txt
path: hello.txt
if: always()