diff --git a/.github/workflows/protect-files.yml b/.github/workflows/protect-files.yml index 4e0a739a8..685d6be2d 100644 --- a/.github/workflows/protect-files.yml +++ b/.github/workflows/protect-files.yml @@ -11,7 +11,7 @@ on: - opened - synchronize paths: - - "util/Migrator/DbScripts" + - "util/Migrator/DbScripts/**.sql" jobs: changed-files: @@ -51,7 +51,7 @@ jobs: runs-on: ubuntu-20.04 needs: - changed-files - if: contains(needs.changed-files.outputs.changes, "true") || job.changed-files.status == "failure" + if: needs.changed-files.outputs.changes == "true" || job.changed-files.status == "failure" steps: - name: Label PR uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90