diff --git a/.github/workflows/add-copyright-comment.yml b/.github/workflows/add-copyright-comment.yml index eaf8d9e..836f344 100644 --- a/.github/workflows/add-copyright-comment.yml +++ b/.github/workflows/add-copyright-comment.yml @@ -3,7 +3,7 @@ name: Prepend Comments on: push: branches: - - final-comments + - fin-fin-comments jobs: prepend-comments: @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v2 - name: Check and Prepend Comments run: | - for file in $(find . -type d \( -path "./backend/signin-service/src" -o -path "./backend/web/Web.Portal/wwwroot" \) -prune -o -type f \( -name "*.ts" -o -name "*.tsx" -o -name "*.js" -o -name "*.cs" \) -print); do + for file in $(find . -type d \( -path "./backend/signing-service/src" -o -path "./backend/web/Web.Portal/wwwroot" \) -prune -o -type f \( -name "*.ts" -o -name "*.tsx" -o -name "*.js" -o -name "*.cs" \) -print); do if ! grep -q "Copyright 2023 Quantoz Technology B.V. and contributors." "$file"; then echo -e "// Copyright 2023 Quantoz Technology B.V. and contributors. Licensed\n// under the Apache License, Version 2.0. See the NOTICE file at the root\n// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0\n\n$(cat $file)" > $file fi