Skip to content

Commit caadf4d

Browse files
authored
chore(ci): add fallback lint (#82)
* chore(ci): add fallback lint * Update lint_fallback.yml
1 parent 6e8524d commit caadf4d

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

.github/workflows/lint.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,16 @@
1515
name: Lint
1616
on:
1717
pull_request:
18-
paths-ignore:
18+
paths-ignore: # Changes to the paths list need to be reflected in lint_fallback.yml
1919
- "*.md"
20+
- ".kokoro/**"
21+
- ".github/**"
2022
pull_request_target:
2123
types: [labeled]
2224
paths-ignore:
2325
- "*.md"
26+
- ".kokoro/**"
27+
- ".github/**"
2428

2529
jobs:
2630
lint:
@@ -53,6 +57,10 @@ jobs:
5357
5458
- name: Checkout Repository
5559
uses: actions/checkout@v3
60+
with:
61+
ref: ${{ github.event.pull_request.head.sha }}
62+
repository: ${{ github.event.pull_request.head.repo.full_name }}
63+
token: ${{ secrets.GITHUB_TOKEN }}
5664

5765
- name: Setup Python
5866
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Lint
16+
on:
17+
pull_request:
18+
paths: # These paths are the inverse of lint.yml
19+
- "*.md"
20+
- ".kokoro/**"
21+
- ".github/**"
22+
23+
jobs:
24+
lint:
25+
runs-on: ubuntu-latest
26+
permissions:
27+
contents: none
28+
29+
steps:
30+
- run: echo "No tests required."

0 commit comments

Comments
 (0)