Filter paths that run CI (#279)

* Filter paths that run CI
* Add dummy CI to check
This commit is contained in:
Ondřej Šebek 2021-11-07 14:39:10 +01:00 committed by GitHub
parent e94418e5c6
commit 95f2247657
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 53 additions and 4 deletions

28
.github/workflows/dummy-ci.yml vendored Normal file
View File

@ -0,0 +1,28 @@
# RUN IN CASE Haskell-CI DOES NOT RUN
# used for mergify check
name: Co-Haskell-CI
on:
push:
paths-ignore:
- '**.hs'
- '**.sw'
- '**.cabal'
- '*.yaml'
- 'data/**.yaml'
- 'cabal.project*'
# reuse the same filter for pull-requests
pull_request:
paths-ignore:
- '**.hs'
- '**.sw'
- '**.cabal'
- 'stack.yaml'
- '*.yaml'
- 'data/**.yaml'
- 'cabal.project*'
jobs:
linux:
runs-on: ubuntu-latest
steps:
- name: Do nothing
run: exit 0

View File

@ -1,3 +1,5 @@
## Hand edited to add paths filter ;)
#
# This GitHub workflow config has been generated by a script via
#
# haskell-ci 'github' 'swarm.cabal'
@ -14,8 +16,24 @@
#
name: Haskell-CI
on:
- push
- pull_request
push:
paths:
- '**.hs'
- '**.sw'
- '**.cabal'
- '*.yaml'
- 'data/**.yaml'
- 'cabal.project*'
# reuse the same filter for pull-requests
pull_request:
paths:
- '**.hs'
- '**.sw'
- '**.cabal'
- 'stack.yaml'
- '*.yaml'
- 'data/**.yaml'
- 'cabal.project*'
jobs:
linux:
# when changing the name or adding ghc version, please don't forget to update

View File

@ -6,8 +6,11 @@ pull_request_rules:
commit_message: title+body
name: Automatically merge pull requests
conditions:
- check-success=Haskell-CI - Linux - ghc-9.0.1
- check-success=Haskell-CI - Linux - ghc-8.10.4
- or:
- check-success=Co-Haskell-CI
- and:
- check-success=Haskell-CI - Linux - ghc-9.0.1
- check-success=Haskell-CI - Linux - ghc-8.10.4
- label=merge me
- ! '#approved-reviews-by>=1'
- ! '#changes-requested-reviews-by=0'