Skip to content

Commit b1812e2

Browse files
committed
refactor: only trigger material.aio workflows when files touched in that folder
1 parent 233670c commit b1812e2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/ci.material-aio.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- main
77
- '[0-9]+.[0-9]+.x'
8+
paths:
9+
- 'material.angular.io/**'
810

911
concurrency:
1012
group: ${{ github.workflow }}-${{ github.ref }}
@@ -62,7 +64,7 @@ jobs:
6264
retention-days: 14
6365

6466
lighthouse:
65-
runs-on: ubuntu-22.04 # Note, fails on Ubuntu 24.04, see https://github.com/actions/runner-images/issues/10636
67+
runs-on: ubuntu-22.04 # Note, fails on Ubuntu 24.04. see https://github.com/actions/runner-images/issues/10636
6668
steps:
6769
- name: Initialize environment
6870
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@359350bbc10aab1bac85d0eec61a53377078ab82

.github/workflows/pr.material-aio.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: 'CI (material.angular.io)'
33
on:
44
pull_request:
55
types: [opened, synchronize, reopened]
6+
paths:
7+
- 'material.angular.io/**'
68

79
concurrency:
810
group: ${{ github.workflow }}-${{ github.ref }}
@@ -60,7 +62,7 @@ jobs:
6062
retention-days: 14
6163

6264
lighthouse:
63-
runs-on: ubuntu-22.04 # Note, fails on Ubuntu 24.04, see https://github.com/actions/runner-images/issues/10636
65+
runs-on: ubuntu-22.04 # Note, fails on Ubuntu 24.04. see https://github.com/actions/runner-images/issues/10636
6466
steps:
6567
- name: Initialize environment
6668
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@359350bbc10aab1bac85d0eec61a53377078ab82

0 commit comments

Comments
 (0)