diff --git a/.github/workflows/pr-rat-check.yml b/.github/workflows/pr-rat-check.yml index 4516d0d4c80..7138b815eb3 100644 --- a/.github/workflows/pr-rat-check.yml +++ b/.github/workflows/pr-rat-check.yml @@ -41,6 +41,6 @@ jobs: - name: Check NOTICE Copyright year run: | - (grep "Copyright $(date +%Y) The Apache Software Foundation" NOTICE && echo "NOTICE Copyright year is up to date") || echo "NOTICE Copyright year is outdated" && exit 1 + (grep "Copyright $(date +%Y) The Apache Software Foundation" NOTICE && echo "NOTICE Copyright year is up to date") || (echo "NOTICE Copyright year is outdated" && exit 1)