Skip to content

Commit

Permalink
chore: mergify fixing continued (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chriscbr authored Jan 4, 2024
1 parent 692e5ae commit 3a6ec62
Show file tree
Hide file tree
Showing 19 changed files with 63 additions and 63 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bedrock-pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
paths:
- bedrock/**
jobs:
build:
build-bedrock:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bedrock-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
paths:
- bedrock/**
jobs:
build:
build-bedrock:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/checks-pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
paths:
- checks/**
jobs:
build:
build-checks:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/checks-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
paths:
- checks/**
jobs:
build:
build-checks:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/containers-pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
paths:
- containers/**
jobs:
build:
build-containers:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/containers-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
paths:
- containers/**
jobs:
build:
build-containers:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fifoqueue-pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
paths:
- fifoqueue/**
jobs:
build:
build-fifoqueue:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fifoqueue-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
paths:
- fifoqueue/**
jobs:
build:
build-fifoqueue:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/github-pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
paths:
- github/**
jobs:
build:
build-github:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/github-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
paths:
- github/**
jobs:
build:
build-github:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/postgres-pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
paths:
- postgres/**
jobs:
build:
build-postgres:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/postgres-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
paths:
- postgres/**
jobs:
build:
build-postgres:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/redis-pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
paths:
- redis/**
jobs:
build:
build-redis:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/redis-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
paths:
- redis/**
jobs:
build:
build-redis:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/websockets-pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
paths:
- websockets/**
jobs:
build:
build-websockets:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/websockets-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
paths:
- websockets/**
jobs:
build:
build-websockets:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
64 changes: 32 additions & 32 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,29 +33,29 @@ pull_request_rules:
- base=main
- check-success=Validate PR title
- or:
- check-success=bedrock-pull / build
- check-skipped=bedrock-pull / build
- check-success=build-bedrock
- check-skipped=build-bedrock
- or:
- check-success=checks-pull / build
- check-skipped=checks-pull / build
- check-success=build-checks
- check-skipped=build-checks
- or:
- check-success=containers-pull / build
- check-skipped=containers-pull / build
- check-success=build-containers
- check-skipped=build-containers
- or:
- check-success=fifoqueue-pull / build
- check-skipped=fifoqueue-pull / build
- check-success=build-fifoqueue
- check-skipped=build-fifoqueue
- or:
- check-success=github-pull / build
- check-skipped=github-pull / build
- check-success=build-github
- check-skipped=build-github
- or:
- check-success=postgres-pull / build
- check-skipped=postgres-pull / build
- check-success=build-postgres
- check-skipped=build-postgres
- or:
- check-success=redis-pull / build
- check-skipped=redis-pull / build
- check-success=build-redis
- check-skipped=build-redis
- or:
- check-success=websockets-pull / build
- check-skipped=websockets-pull / build
- check-success=build-websockets
- check-skipped=build-websockets
- name: requires manual merge
conditions:
- files=.mergify.yml
Expand All @@ -71,29 +71,29 @@ pull_request_rules:
- base=main
- check-success=Validate PR title
- or:
- check-success=bedrock-pull / build
- check-skipped=bedrock-pull / build
- check-success=build-bedrock
- check-skipped=build-bedrock
- or:
- check-success=checks-pull / build
- check-skipped=checks-pull / build
- check-success=build-checks
- check-skipped=build-checks
- or:
- check-success=containers-pull / build
- check-skipped=containers-pull / build
- check-success=build-containers
- check-skipped=build-containers
- or:
- check-success=fifoqueue-pull / build
- check-skipped=fifoqueue-pull / build
- check-success=build-fifoqueue
- check-skipped=build-fifoqueue
- or:
- check-success=github-pull / build
- check-skipped=github-pull / build
- check-success=build-github
- check-skipped=build-github
- or:
- check-success=postgres-pull / build
- check-skipped=postgres-pull / build
- check-success=build-postgres
- check-skipped=build-postgres
- or:
- check-success=redis-pull / build
- check-skipped=redis-pull / build
- check-success=build-redis
- check-skipped=build-redis
- or:
- check-success=websockets-pull / build
- check-skipped=websockets-pull / build
- check-success=build-websockets
- check-skipped=build-websockets
actions:
comment:
message: Thank you for contributing! Your pull request contains mergify
Expand Down
26 changes: 13 additions & 13 deletions library.w
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ pub class Library {
},
});

let releaseJobs = MutJson {};
releaseJobs.set("build-{base}", {
"runs-on": "ubuntu-latest",
steps: releaseSteps.copy(),
});
fs.writeYaml("{workflowdir}/{base}-release.yaml", {
name: "{base}-release",
on: {
Expand All @@ -111,27 +116,22 @@ pub class Library {
paths: ["{libdir}/**"]
}
},
jobs: {
build: {
"runs-on": "ubuntu-latest",
steps: releaseSteps.copy()
}
}
jobs: Json.deepCopy(releaseJobs),
});

fs.writeYaml("{workflowdir}/{base}-pull.yaml", {
let pullJobs = MutJson {};
pullJobs.set("build-{base}", {
"runs-on": "ubuntu-latest",
steps: pullSteps.copy(),
});
fs.writeYaml("{workflowdir}/{base}-pull.yaml", {
name: "{base}-pull",
on: {
pull_request: {
paths: ["{libdir}/**"]
}
},
jobs: {
build: {
"runs-on": "ubuntu-latest",
steps: pullSteps.copy()
}
}
jobs: Json.deepCopy(pullJobs),
});
}
}
4 changes: 2 additions & 2 deletions mergify.w
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ pub class MergifyWorkflow {
for lib in libs {
buildChecks.push(Json {
"or": [
"check-success={lib}-pull / build",
"check-skipped={lib}-pull / build",
"check-success=build-{lib}",
"check-skipped=build-{lib}",
]
});
}
Expand Down

0 comments on commit 3a6ec62

Please sign in to comment.