From 0d89e7425ece5a39ef9e19fb5fd901487b104058 Mon Sep 17 00:00:00 2001 From: Joe George Date: Fri, 18 Oct 2024 10:16:23 -0400 Subject: [PATCH] Add timeout workflow --- .github/workflows/timeout.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/timeout.yml diff --git a/.github/workflows/timeout.yml b/.github/workflows/timeout.yml new file mode 100644 index 0000000..fad0c37 --- /dev/null +++ b/.github/workflows/timeout.yml @@ -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()