2023-02-23 15:37:36 +00:00
|
|
|
name: Check which packages changed
|
|
|
|
|
|
|
|
permissions: read-all
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_call:
|
2023-03-22 09:47:22 +00:00
|
|
|
inputs:
|
|
|
|
check-mergeable-state:
|
|
|
|
default: false
|
|
|
|
type: boolean
|
2023-02-23 15:37:36 +00:00
|
|
|
outputs:
|
|
|
|
changes:
|
|
|
|
description: 'The packages that were changed for this PR'
|
|
|
|
value: ${{ jobs.check-changes.outputs.changes }}
|
|
|
|
jobs:
|
|
|
|
check-changes:
|
|
|
|
name: Check which packages changed
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
outputs:
|
|
|
|
changes: ${{ steps.changes.outputs.changes }}
|
|
|
|
steps:
|
|
|
|
- name: Check out repository
|
|
|
|
uses: actions/checkout@v3.3.0
|
|
|
|
with:
|
|
|
|
fetch-depth: 2
|
2023-03-22 09:47:22 +00:00
|
|
|
- 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 @;
|
2023-02-23 15:37:36 +00:00
|
|
|
- name: Detect changed packages
|
|
|
|
uses: dorny/paths-filter@v2.11.1
|
|
|
|
id: changes
|
|
|
|
with:
|
|
|
|
filters: |
|
|
|
|
puppeteer:
|
|
|
|
- '.github/workflows/ci.yml'
|
|
|
|
- 'packages/puppeteer/**'
|
|
|
|
- 'packages/puppeteer-core/**'
|
|
|
|
- 'docker/**'
|
|
|
|
- 'test/**'
|
|
|
|
- 'test-d/**'
|
|
|
|
- 'tools/mochaRunner/**'
|
2023-03-23 09:22:17 +00:00
|
|
|
- '.mocharc.cjs'
|
2023-02-23 15:37:36 +00:00
|
|
|
website:
|
|
|
|
- '.github/workflows/ci.yml'
|
|
|
|
- 'docs/**'
|
|
|
|
- 'website/**'
|
|
|
|
ng-schematics:
|
|
|
|
- '.github/workflows/ci.yml'
|
|
|
|
- 'packages/ng-schematics/**'
|
|
|
|
browsers:
|
|
|
|
- '.github/workflows/ci.yml'
|
|
|
|
- 'packages/browsers/**'
|