Skip to content

Commit

Permalink
Add cancel workflow and timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
tortmayr committed Jul 17, 2024
1 parent 9979fb8 commit 061cd77
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci-cancel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Cancel currently running CI workflows
on:
workflow_run:
workflows: ['CI']
types:
- requested
jobs:
cancel:
runs-on: ubuntu-latest
steps:
- uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa #v0.12.1
with:
ignore_sha: true
workflow_id: ${{ github.event.workflow.id }}
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
Expand All @@ -26,6 +27,7 @@ jobs:
fi
lint:
name: Lint
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
Expand All @@ -47,6 +49,7 @@ jobs:
playwright:
name: Playwright Tests
timeout-minutes: 120
runs-on: ubuntu-latest
env:
STANDALONE_URL: 'file://${{ github.workspace }}/examples/workflow-test/repositories/glsp-client/examples/workflow-standalone/app/diagram.html'
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/publish-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ on:
permissions:
id-token: write
jobs:
build:
name: Build & Release
publish:
name: Build & Publish
runs-on: ubuntu-latest
timeout-minutes: 60
if: github.event_name == 'workflow_dispatch' || (github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main')
env:
changes: true
Expand Down

0 comments on commit 061cd77

Please sign in to comment.