Skip to content

Commit

Permalink
Add timeout workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
externl committed Oct 18, 2024
1 parent 90a4146 commit 0d89e74
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/timeout.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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()

0 comments on commit 0d89e74

Please sign in to comment.