зеркало из https://github.com/github/ruby.git
Let `[DOC]` in PR title skip CIs
This commit is contained in:
Родитель
9c1fe9064c
Коммит
e098468d7f
|
@ -40,7 +40,12 @@ jobs:
|
|||
image: ghcr.io/ruby/ruby-ci-image:gcc-11
|
||||
options: --user root
|
||||
|
||||
if: ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }}
|
||||
if: >-
|
||||
${{!(false
|
||||
|| contains(github.event.head_commit.message, '[DOC]')
|
||||
|| contains(github.event.pull_request.title, '[DOC]')
|
||||
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
|
||||
)}}
|
||||
|
||||
env:
|
||||
CONFIGURE_TTY: never
|
||||
|
|
|
@ -36,7 +36,12 @@ jobs:
|
|||
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
if: ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }}
|
||||
if: >-
|
||||
${{!(false
|
||||
|| contains(github.event.head_commit.message, '[DOC]')
|
||||
|| contains(github.event.pull_request.title, '[DOC]')
|
||||
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
|
||||
)}}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
|
|
|
@ -38,7 +38,12 @@ jobs:
|
|||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
if: ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }}
|
||||
if: >-
|
||||
${{!(false
|
||||
|| contains(github.event.head_commit.message, '[DOC]')
|
||||
|| contains(github.event.pull_request.title, '[DOC]')
|
||||
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
|
||||
)}}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
||||
|
|
|
@ -36,7 +36,12 @@ jobs:
|
|||
contents: read # for actions/checkout to fetch code
|
||||
security-events: write # for github/codeql-action/autobuild to send a status report
|
||||
# CodeQL fails to run pull requests from dependabot due to missing write access to upload results.
|
||||
if: ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') && github.event.head_commit.pusher.name != 'dependabot[bot]' }}
|
||||
if: >-
|
||||
${{!(false
|
||||
|| contains(github.event.head_commit.message, '[DOC]')
|
||||
|| contains(github.event.pull_request.title, '[DOC]')
|
||||
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
|
||||
)}}
|
||||
|
||||
env:
|
||||
enable_install_doc: no
|
||||
|
|
|
@ -218,7 +218,12 @@ jobs:
|
|||
image: ghcr.io/ruby/ruby-ci-image:${{ matrix.entry.container || matrix.entry.env.default_cc || 'clang-16' }}
|
||||
options: --user root
|
||||
|
||||
if: ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }}
|
||||
if: >-
|
||||
${{!(false
|
||||
|| contains(github.event.head_commit.message, '[DOC]')
|
||||
|| contains(github.event.pull_request.title, '[DOC]')
|
||||
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
|
||||
)}}
|
||||
|
||||
env: ${{ matrix.entry.env || matrix.env }}
|
||||
|
||||
|
|
|
@ -47,7 +47,12 @@ jobs:
|
|||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
if: ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }}
|
||||
if: >-
|
||||
${{!(false
|
||||
|| contains(github.event.head_commit.message, '[DOC]')
|
||||
|| contains(github.event.pull_request.title, '[DOC]')
|
||||
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
|
||||
)}}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
||||
|
|
|
@ -58,7 +58,12 @@ jobs:
|
|||
test-all-opts: '--name=!/TestObjSpace#test_reachable_objects_during_iteration/'
|
||||
fail-fast: false
|
||||
|
||||
if: ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }}
|
||||
if: >-
|
||||
${{!(false
|
||||
|| contains(github.event.head_commit.message, '[DOC]')
|
||||
|| contains(github.event.pull_request.title, '[DOC]')
|
||||
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
|
||||
)}}
|
||||
|
||||
steps:
|
||||
- name: Set up Ruby & MSYS2
|
||||
|
|
|
@ -39,7 +39,12 @@ jobs:
|
|||
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
if: ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }}
|
||||
if: >-
|
||||
${{!(false
|
||||
|| contains(github.event.head_commit.message, '[DOC]')
|
||||
|| contains(github.event.pull_request.title, '[DOC]')
|
||||
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
|
||||
)}}
|
||||
|
||||
steps:
|
||||
- name: Set up Ruby
|
||||
|
|
|
@ -49,7 +49,12 @@ jobs:
|
|||
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
if: ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }}
|
||||
if: >-
|
||||
${{!(false
|
||||
|| contains(github.event.head_commit.message, '[DOC]')
|
||||
|| contains(github.event.pull_request.title, '[DOC]')
|
||||
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
|
||||
)}}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
||||
|
|
|
@ -27,7 +27,12 @@ jobs:
|
|||
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
if: ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }}
|
||||
if: >-
|
||||
${{!(false
|
||||
|| contains(github.event.head_commit.message, '[DOC]')
|
||||
|| contains(github.event.pull_request.title, '[DOC]')
|
||||
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
|
||||
)}}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
|
|
|
@ -55,7 +55,12 @@ jobs:
|
|||
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
if: ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }}
|
||||
if: >-
|
||||
${{!(false
|
||||
|| contains(github.event.head_commit.message, '[DOC]')
|
||||
|| contains(github.event.pull_request.title, '[DOC]')
|
||||
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
|
||||
)}}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
||||
|
|
|
@ -54,7 +54,12 @@ jobs:
|
|||
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
if: ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }}
|
||||
if: >-
|
||||
${{!(false
|
||||
|| contains(github.event.head_commit.message, '[DOC]')
|
||||
|| contains(github.event.pull_request.title, '[DOC]')
|
||||
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
|
||||
)}}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
||||
|
|
|
@ -40,7 +40,12 @@ jobs:
|
|||
|
||||
runs-on: windows-${{ matrix.vs < 2022 && '2019' || matrix.vs }}
|
||||
|
||||
if: ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }}
|
||||
if: >-
|
||||
${{!(false
|
||||
|| contains(github.event.head_commit.message, '[DOC]')
|
||||
|| contains(github.event.pull_request.title, '[DOC]')
|
||||
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
|
||||
)}}
|
||||
|
||||
name: VisualStudio ${{ matrix.vs }}
|
||||
|
||||
|
|
|
@ -109,7 +109,12 @@ jobs:
|
|||
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
if: ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }}
|
||||
if: >-
|
||||
${{!(false
|
||||
|| contains(github.event.head_commit.message, '[DOC]')
|
||||
|| contains(github.event.pull_request.title, '[DOC]')
|
||||
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
|
||||
)}}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
||||
|
|
Загрузка…
Ссылка в новой задаче