Skip to content

Commit be01150

Browse files
authored
Run linter less often
1 parent ea4168d commit be01150

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/lint.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,18 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
name: Lint
15-
16-
on: [push, pull_request]
17-
15+
on:
16+
push:
17+
branches:
18+
- master
19+
pull_request:
20+
branches:
21+
- master
1822
jobs:
1923
lint:
24+
concurrency:
25+
group: ${{ github.head_ref || github.ref }}
26+
cancel-in-progress: true
2027
runs-on: ubuntu-20.04
2128
steps:
2229
- uses: actions/checkout@v2.4.0
@@ -26,4 +33,4 @@ jobs:
2633
VALIDATE_JSCPD: false
2734
VALIDATE_PYTHON_BLACK: false
2835
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' }}
29-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)