Skip to content

Commit 4e27db8

Browse files
authored
Actions: shorten timeout and enable cancel-in-progress (#3151)
This should free up resources (even if we're not paying for them) and maybe make our builds run a little bit faster / trigger a little sooner.
1 parent 8eee61b commit 4e27db8

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/pr.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ on:
44
pull_request:
55
branches: [main]
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
9+
cancel-in-progress: true
10+
711
jobs:
812
build:
913
runs-on: ubuntu-latest
14+
timeout-minutes: 15
1015
steps:
1116
- uses: actions/checkout@v3
1217
with:

.github/workflows/push.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ on:
44
push:
55
branches: [main]
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
9+
cancel-in-progress: true
10+
711
jobs:
812
build:
913
runs-on: ubuntu-latest
14+
timeout-minutes: 15
1015
steps:
1116
- uses: actions/[email protected]
1217
with:

0 commit comments

Comments
 (0)