From e9352f1e53f6d3e167e6ff26d772605321e160a9 Mon Sep 17 00:00:00 2001 From: per1234 Date: Wed, 11 Aug 2021 01:57:54 -0700 Subject: [PATCH] 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. --- .github/workflows/check-license.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-license.yml b/.github/workflows/check-license.yml index 0c565884..4cf2a96e 100644 --- a/.github/workflows/check-license.yml +++ b/.github/workflows/check-license.yml @@ -10,7 +10,7 @@ env: on: push: 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 - "[cC][oO][pP][yY][iI][nN][gG]*" - "[cC][oO][pP][yY][rR][iI][gG][hH][tH]*" @@ -19,7 +19,7 @@ on: - "[pP][aA][tT][eE][nN][tT][sS]*" pull_request: paths: - - ".github/workflows/check-license.yml" + - ".github/workflows/check-license.ya?ml" - "[cC][oO][pP][yY][iI][nN][gG]*" - "[cC][oO][pP][yY][rR][iI][gG][hH][tH]*" - "[lL][iI][cC][eE][nN][cCsS][eE]*"