ci: add alls-green action for single required check (#1882)
This commit is contained in:
parent
2cf7784a48
commit
2b4c7ebc61
3 changed files with 24 additions and 22 deletions
14
.github/workflows/main-checks.yml
vendored
14
.github/workflows/main-checks.yml
vendored
|
|
@ -1,14 +0,0 @@
|
||||||
name: Main branch checks
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- "v*.*.*"
|
|
||||||
- "v1.x"
|
|
||||||
tags:
|
|
||||||
- "v*.*.*"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
checks:
|
|
||||||
uses: ./.github/workflows/shared.yml
|
|
||||||
24
.github/workflows/main.yml
vendored
Normal file
24
.github/workflows/main.yml
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["main", "v1.x"]
|
||||||
|
tags: ["v*.*.*"]
|
||||||
|
pull_request:
|
||||||
|
branches: ["main", "v1.x"]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
checks:
|
||||||
|
uses: ./.github/workflows/shared.yml
|
||||||
|
|
||||||
|
all-green:
|
||||||
|
if: always()
|
||||||
|
needs: [checks]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
|
||||||
|
with:
|
||||||
|
jobs: ${{ toJSON(needs) }}
|
||||||
8
.github/workflows/pull-request-checks.yml
vendored
8
.github/workflows/pull-request-checks.yml
vendored
|
|
@ -1,8 +0,0 @@
|
||||||
name: Pull request checks
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
checks:
|
|
||||||
uses: ./.github/workflows/shared.yml
|
|
||||||
Loading…
Reference in a new issue