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' - '**.md'
- '**.rdoc' - '**.rdoc'
concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
jobs: jobs:
baseruby: baseruby:
name: BASERUBY name: BASERUBY

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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