mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
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:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
check-mergeable-state:
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
outputs:
|
outputs:
|
||||||
changes:
|
changes:
|
||||||
description: 'The packages that were changed for this PR'
|
description: 'The packages that were changed for this PR'
|
||||||
@ -19,6 +23,11 @@ jobs:
|
|||||||
uses: actions/checkout@v3.3.0
|
uses: actions/checkout@v3.3.0
|
||||||
with:
|
with:
|
||||||
fetch-depth: 2
|
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
|
- name: Detect changed packages
|
||||||
uses: dorny/paths-filter@v2.11.1
|
uses: dorny/paths-filter@v2.11.1
|
||||||
id: changes
|
id: changes
|
||||||
|
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -59,6 +59,8 @@ jobs:
|
|||||||
check-changes:
|
check-changes:
|
||||||
needs: inspect-code
|
needs: inspect-code
|
||||||
uses: ./.github/workflows/changed-packages.yml
|
uses: ./.github/workflows/changed-packages.yml
|
||||||
|
with:
|
||||||
|
check-mergeable-state: true
|
||||||
|
|
||||||
deploy-docs:
|
deploy-docs:
|
||||||
needs: check-changes
|
needs: check-changes
|
||||||
|
Loading…
Reference in New Issue
Block a user