mirror of
https://github.com/swarm-game/swarm.git
synced 2024-08-16 18:10:23 +03:00
Add the CI file check to mergify (#283)
I made a mistake in #279, for PRs that modify both .hs an .md the dummy would pass 🙄 Copying the logic to .mergify.yml should fix this. 🤞
This commit is contained in:
parent
95f2247657
commit
89e613c678
28
.github/workflows/dummy-ci.yml
vendored
28
.github/workflows/dummy-ci.yml
vendored
@ -1,28 +0,0 @@
|
||||
# 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
|
@ -7,7 +7,14 @@ pull_request_rules:
|
||||
name: Automatically merge pull requests
|
||||
conditions:
|
||||
- or:
|
||||
- check-success=Co-Haskell-CI
|
||||
- and:
|
||||
- -files~=\.hs$
|
||||
- -files~=\.sw$
|
||||
- -files~=\.cabal$
|
||||
- -files=stack.yaml
|
||||
- -files~=cabal.project.*
|
||||
- -files~=^[^/]*\.yaml$
|
||||
- -files~=^data/.*\.yaml$
|
||||
- and:
|
||||
- check-success=Haskell-CI - Linux - ghc-9.0.1
|
||||
- check-success=Haskell-CI - Linux - ghc-8.10.4
|
||||
|
Loading…
Reference in New Issue
Block a user