puppeteer/.github/workflows/changed-packages.yml
dependabot[bot] 0242d22132
chore(deps): Bump the all group with 5 updates (#11766)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-29 09:47:07 +00:00

59 lines
1.8 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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
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@0bc4621a3135347011ad047f9ecf449bf72ce2bd # v3.0.0
id: changes
with:
filters: |
puppeteer:
- '.github/workflows/ci.yml'
- 'packages/browsers/src/browser-data/firefox.ts'
- 'packages/puppeteer/**'
- 'packages/puppeteer-core/**'
- 'packages/testserver/**'
- 'docker/**'
- 'test/**'
- 'test-d/**'
- 'tools/mocha-runner/**'
- '.mocharc.cjs'
- 'tools/doctest/**'
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/**'