chore: extract Changed packages workflow (#9741)
This commit is contained in:
parent
ba5d4bf2c1
commit
415da92300
44
.github/workflows/changed-packages.yml
vendored
Normal file
44
.github/workflows/changed-packages.yml
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
name: Check which packages changed
|
||||
|
||||
permissions: read-all
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
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
|
||||
- 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/**'
|
||||
website:
|
||||
- '.github/workflows/ci.yml'
|
||||
- 'docs/**'
|
||||
- 'website/**'
|
||||
ng-schematics:
|
||||
- '.github/workflows/ci.yml'
|
||||
- 'packages/ng-schematics/**'
|
||||
browsers:
|
||||
- '.github/workflows/ci.yml'
|
||||
- 'packages/browsers/**'
|
33
.github/workflows/ci.yml
vendored
33
.github/workflows/ci.yml
vendored
@ -55,38 +55,7 @@ jobs:
|
||||
rm $diff_file
|
||||
|
||||
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
|
||||
- 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/**'
|
||||
website:
|
||||
- '.github/workflows/ci.yml'
|
||||
- 'docs/**'
|
||||
- 'website/**'
|
||||
ng-schematics:
|
||||
- '.github/workflows/ci.yml'
|
||||
- 'packages/ng-schematics/**'
|
||||
browsers:
|
||||
- '.github/workflows/ci.yml'
|
||||
- 'packages/browsers/**'
|
||||
uses: ./.github/workflows/changed-packages.yml
|
||||
|
||||
deploy-docs:
|
||||
needs: check-changes
|
||||
|
25
.github/workflows/pre-release.yml
vendored
25
.github/workflows/pre-release.yml
vendored
@ -1,5 +1,7 @@
|
||||
name: Pre-release
|
||||
|
||||
permissions: read-all
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@ -7,28 +9,7 @@ on:
|
||||
|
||||
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
|
||||
- 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/**'
|
||||
uses: ./.github/workflows/changed-packages.yml
|
||||
|
||||
pre-release:
|
||||
if: |
|
||||
|
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@ -1,5 +1,7 @@
|
||||
name: Publish
|
||||
|
||||
permissions: read-all
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
|
Loading…
Reference in New Issue
Block a user