mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
2a86aa2629
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
56 lines
1.7 KiB
YAML
56 lines
1.7 KiB
YAML
name: Check which packages changed
|
|
|
|
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'
|
|
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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
|
with:
|
|
fetch-depth: 2
|
|
- name: Check if branch is out of date
|
|
if: ${{ inputs.check-mergeable-state && github.base_ref == 'main' }}
|
|
run: |
|
|
git fetch origin main --depth 1 &&
|
|
git merge-base --is-ancestor origin/main @;
|
|
- name: Detect changed packages
|
|
uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
|
|
id: changes
|
|
with:
|
|
filters: |
|
|
puppeteer:
|
|
- '.github/workflows/ci.yml'
|
|
- 'packages/puppeteer/**'
|
|
- 'packages/puppeteer-core/**'
|
|
- 'docker/**'
|
|
- 'test/**'
|
|
- 'test-d/**'
|
|
- 'tools/mochaRunner/**'
|
|
- '.mocharc.cjs'
|
|
website:
|
|
- '.github/workflows/ci.yml'
|
|
- 'docs/**'
|
|
- 'website/**'
|
|
- 'README.md'
|
|
ng-schematics:
|
|
- '.github/workflows/ci.yml'
|
|
- 'packages/ng-schematics/**'
|
|
browsers:
|
|
- '.github/workflows/ci.yml'
|
|
- 'packages/browsers/**'
|