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
|
2024-05-21 08:14:13 +00:00
|
|
|
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
2023-02-23 15:37:36 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 2
|
2023-03-22 09:47:22 +00:00
|
|
|
- name: Check if branch is out of date
|
2023-05-30 11:07:55 +00:00
|
|
|
if: ${{ inputs.check-mergeable-state && github.base_ref == 'main' }}
|
2023-03-22 09:47:22 +00:00
|
|
|
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
|
2024-03-04 10:00:59 +00:00
|
|
|
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
|
2023-02-23 15:37:36 +00:00
|
|
|
id: changes
|
|
|
|
with:
|
|
|
|
filters: |
|
|
|
|
puppeteer:
|
|
|
|
- '.github/workflows/ci.yml'
|
2023-07-11 13:38:44 +00:00
|
|
|
- 'packages/browsers/src/browser-data/firefox.ts'
|
2023-02-23 15:37:36 +00:00
|
|
|
- 'packages/puppeteer/**'
|
|
|
|
- 'packages/puppeteer-core/**'
|
2023-10-19 09:04:29 +00:00
|
|
|
- 'packages/testserver/**'
|
2023-02-23 15:37:36 +00:00
|
|
|
- 'docker/**'
|
|
|
|
- 'test/**'
|
|
|
|
- 'test-d/**'
|
2023-09-22 08:57:18 +00:00
|
|
|
- 'tools/mocha-runner/**'
|
2023-03-23 09:22:17 +00:00
|
|
|
- '.mocharc.cjs'
|
2023-09-19 15:13:30 +00:00
|
|
|
- 'tools/doctest/**'
|
2023-02-23 15:37:36 +00:00
|
|
|
website:
|
|
|
|
- '.github/workflows/ci.yml'
|
|
|
|
- 'docs/**'
|
|
|
|
- 'website/**'
|
2023-05-04 08:58:34 +00:00
|
|
|
- 'README.md'
|
2023-02-23 15:37:36 +00:00
|
|
|
ng-schematics:
|
|
|
|
- '.github/workflows/ci.yml'
|
|
|
|
- 'packages/ng-schematics/**'
|
|
|
|
browsers:
|
|
|
|
- '.github/workflows/ci.yml'
|
|
|
|
- 'packages/browsers/**'
|