Skip to content

Commit

Permalink
Actions: shorten timeout and enable cancel-in-progress (#3151)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kainino0x authored Nov 10, 2023
1 parent 8eee61b commit 4e27db8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ on:
pull_request:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ on:
push:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v2.3.1
with:
Expand Down

0 comments on commit 4e27db8

Please sign in to comment.