Throttle GitHub Actions [ci skip]

As GitHub Actions are choking a lot lately, throttle the checks
down to the latest commit only per branches.
This commit is contained in:
Nobuyoshi Nakada 2021-11-18 22:21:05 +09:00
parent 89b440bf72
commit e2b78440ba
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6
12 changed files with 48 additions and 0 deletions

View File

@ -12,6 +12,10 @@ on:
- '**.md'
- '**.rdoc'
concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
jobs:
baseruby:
name: BASERUBY

View File

@ -11,6 +11,10 @@ on:
- '**.md'
- '**.rdoc'
concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
jobs:
update-deps:
strategy:

View File

@ -1,6 +1,10 @@
name: Miscellaneous checks
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
jobs:
checks:
runs-on: ubuntu-latest

View File

@ -14,6 +14,10 @@ on:
schedule:
- cron: '0 12 * * 4'
concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
jobs:
CodeQL-Build:

View File

@ -12,6 +12,10 @@ on:
- '**.md'
- '**.rdoc'
concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
# Github actions does not support YAML anchors. This creative use of
# environment variables (plus the "echo $GITHUB_ENV" hack) is to reroute that
# restriction.

View File

@ -11,6 +11,10 @@ on:
- '**.md'
- '**.rdoc'
concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
# Notes:
# Actions console encoding causes issues, see test-all & test-spec steps
#

View File

@ -11,6 +11,10 @@ on:
- '**.md'
- '**.rdoc'
concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
jobs:
make:
strategy:

View File

@ -12,6 +12,10 @@ on:
- '**.md'
- '**.rdoc'
concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
jobs:
rubyspec:
name: Rubyspec

View File

@ -11,6 +11,10 @@ on:
- '**.md'
- '**.rdoc'
concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
jobs:
make:
strategy:

View File

@ -11,6 +11,10 @@ on:
- '**.md'
- '**.rdoc'
concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
jobs:
make:
strategy:

View File

@ -11,6 +11,10 @@ on:
- '**.md'
- '**.rdoc'
concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
jobs:
make:
strategy:

View File

@ -12,6 +12,10 @@ on:
- '**.md'
- '**.rdoc'
concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest