chore: run CI on up to date PRs (#9885)
This commit is contained in:
parent
4f52a027ba
commit
8bd73175e0
9
.github/workflows/changed-packages.yml
vendored
9
.github/workflows/changed-packages.yml
vendored
@ -4,6 +4,10 @@ permissions: read-all
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
check-mergeable-state:
|
||||
default: false
|
||||
type: boolean
|
||||
outputs:
|
||||
changes:
|
||||
description: 'The packages that were changed for this PR'
|
||||
@ -19,6 +23,11 @@ jobs:
|
||||
uses: actions/checkout@v3.3.0
|
||||
with:
|
||||
fetch-depth: 2
|
||||
- name: Check if branch is out of date
|
||||
if: ${{ inputs.check-mergeable-state }}
|
||||
run: |
|
||||
git fetch origin main --depth 1 &&
|
||||
git merge-base --is-ancestor origin/main @;
|
||||
- name: Detect changed packages
|
||||
uses: dorny/paths-filter@v2.11.1
|
||||
id: changes
|
||||
|
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -59,6 +59,8 @@ jobs:
|
||||
check-changes:
|
||||
needs: inspect-code
|
||||
uses: ./.github/workflows/changed-packages.yml
|
||||
with:
|
||||
check-mergeable-state: true
|
||||
|
||||
deploy-docs:
|
||||
needs: check-changes
|
||||
|
Loading…
Reference in New Issue
Block a user