1
0
mirror of https://github.com/arduino/library-registry.git synced 2025-07-29 14:01:15 +03:00

Make "Check License" workflow path filter handle either YAML extension

There are two file extensions in common use for YAML files: `.yaml` and `.yml`. Although this project uses `.yml`
exclusively for YAML files, this is a standardized workflow which might be applied to projects that have established the
use of the other extension. It will be most flexible if it supports both.
This commit is contained in:
per1234
2021-08-11 01:57:54 -07:00
parent 0c1daad6e9
commit e9352f1e53

View File

@ -10,7 +10,7 @@ env:
on: on:
push: push:
paths: paths:
- ".github/workflows/check-license.yml" - ".github/workflows/check-license.ya?ml"
# See: https://github.com/licensee/licensee/blob/master/docs/what-we-look-at.md#detecting-the-license-file # See: https://github.com/licensee/licensee/blob/master/docs/what-we-look-at.md#detecting-the-license-file
- "[cC][oO][pP][yY][iI][nN][gG]*" - "[cC][oO][pP][yY][iI][nN][gG]*"
- "[cC][oO][pP][yY][rR][iI][gG][hH][tH]*" - "[cC][oO][pP][yY][rR][iI][gG][hH][tH]*"
@ -19,7 +19,7 @@ on:
- "[pP][aA][tT][eE][nN][tT][sS]*" - "[pP][aA][tT][eE][nN][tT][sS]*"
pull_request: pull_request:
paths: paths:
- ".github/workflows/check-license.yml" - ".github/workflows/check-license.ya?ml"
- "[cC][oO][pP][yY][iI][nN][gG]*" - "[cC][oO][pP][yY][iI][nN][gG]*"
- "[cC][oO][pP][yY][rR][iI][gG][hH][tH]*" - "[cC][oO][pP][yY][rR][iI][gG][hH][tH]*"
- "[lL][iI][cC][eE][nN][cCsS][eE]*" - "[lL][iI][cC][eE][nN][cCsS][eE]*"