Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
name: Build

on:
push:
pull_request:
types: [opened, synchronize, reopened, edited]
workflow_call:

permissions:
contents: read # to fetch code (actions/checkout)
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
name: Changelog

on:
push:
branches:
- "main"
- "[0-9].[0-9]"
paths:
- "CHANGELOG.md"
workflow_call:

permissions: {}
jobs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
name: build-checks

on:
push:
pull_request:
types: [opened, synchronize, reopened, edited]
workflow_call:

permissions:
contents: read # to fetch code (actions/checkout)
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/git.yaml → .github/workflows/git.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Git Checks

on: [pull_request]
on:
workflow_call:

jobs:
block-fixup:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
name: pre-commit

on:
push:
pull_request:
workflow_call:

permissions:
contents: read # to fetch code (actions/checkout)
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Pull request

on:
pull_request:
types:
- opened
- synchronize
- reopened
- edited

jobs:
pre-commit:
uses: ./.github/workflows/pre-commit.yml

checks:
uses: ./.github/workflows/checks.yml

git:
uses: ./.github/workflows/git.yml

build:
uses: ./.github/workflows/build.yml

# This task is used as a probe for auto merge
# In the future, it could also be used to perform a status update (e.g once the whole CI is passing + is ready for review, add a specific label such as `need review`)
ready:
name: Ready to merge
needs:
- pre-commit
- checks
- git
- build
runs-on: ubuntu-latest
steps:
- name: Ready to go
run: "exit 0"
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release

on:
push:
branches:
- main
- "[0-9].[0-9]"
workflow_dispatch:

jobs:
checks:
uses: ./.github/workflows/checks.yml

changelog:
uses: ./.github/workflows/changelog.yml

build:
uses: ./.github/workflows/build.yml

sync:
if: ${{ github.ref != 'refs/heads/main' }}
uses: ./.github/workflows/sync_branch.yml
5 changes: 1 addition & 4 deletions .github/workflows/sync_branches.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Sync Branches
on:
push:
branches:
- "2.5"
- "2.6"
workflow_call:
workflow_dispatch:

permissions: {}
Expand Down