0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-28 10:24:19 +01:00

CI: limit the on push triggers (#35574)

Since now we have workflow_dispatch, we can trigger a workflow manually in case we don't have an open PR.

Also, remove the custom `ci skip` code; it's supported natively for some time now: https://github.blog/changelog/2021-02-08-github-actions-skip-pull-request-and-push-workflows-with-skip-ci/
This commit is contained in:
XhmikosR 2022-12-16 09:22:18 +02:00 committed by GitHub
parent 471edac3d3
commit f0ae5cceac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 20 additions and 15 deletions

View File

@ -2,6 +2,11 @@ name: BrowserStack
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
env:
@ -14,7 +19,7 @@ permissions:
jobs:
browserstack:
runs-on: ubuntu-latest
if: github.repository == 'twbs/bootstrap' && (!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]'))
if: github.repository == 'twbs/bootstrap'
timeout-minutes: 30
steps:

View File

@ -2,8 +2,8 @@ name: Bundlewatch
on:
push:
branches-ignore:
- "dependabot/**"
branches:
- main
pull_request:
workflow_dispatch:

View File

@ -2,8 +2,8 @@ name: cspell
on:
push:
branches-ignore:
- "dependabot/**"
branches:
- main
pull_request:
workflow_dispatch:

View File

@ -2,8 +2,8 @@ name: CSS
on:
push:
branches-ignore:
- "dependabot/**"
branches:
- main
pull_request:
workflow_dispatch:

View File

@ -2,8 +2,8 @@ name: Docs
on:
push:
branches-ignore:
- "dependabot/**"
branches:
- main
pull_request:
workflow_dispatch:

View File

@ -2,8 +2,8 @@ name: JS Tests
on:
push:
branches-ignore:
- "dependabot/**"
branches:
- main
pull_request:
workflow_dispatch:

View File

@ -2,8 +2,8 @@ name: Lint
on:
push:
branches-ignore:
- "dependabot/**"
branches:
- main
pull_request:
workflow_dispatch:

View File

@ -2,8 +2,8 @@ name: CSS (node-sass)
on:
push:
branches-ignore:
- "dependabot/**"
branches:
- main
pull_request:
workflow_dispatch: