diff --git a/.github/workflows/happy-new-year.yml b/.github/workflows/happy-new-year.yml index 4d422686a8..f087e7f109 100644 --- a/.github/workflows/happy-new-year.yml +++ b/.github/workflows/happy-new-year.yml @@ -48,12 +48,6 @@ jobs: - name: Show year run: "echo current year: ${{ steps.year.outputs.NEW_YEAR }} - previous year: ${{ steps.year.outputs.PREVIOUS_YEAR }}" - - name: Create search phrase and replacement - id: phrases - run: | - echo "SEARCH=copyright ${{ steps.year.outputs.PREVIOUS_YEAR }} Squiz Pty Ltd" >> $GITHUB_OUTPUT - echo "REPLACE=copyright ${{ steps.year.outputs.NEW_YEAR }} Squiz Pty Ltd" >> $GITHUB_OUTPUT - - name: Checkout code uses: actions/checkout@v4 # with: @@ -63,12 +57,10 @@ jobs: id: findreplace uses: jacobtomlinson/gha-find-replace@v3 with: - find: '\* @copyright 20[0-9]{2} Squiz Pty Ltd \(ABN 77 084 670 600\)' + find: "* @copyright ${{ steps.year.outputs.PREVIOUS_YEAR }} Squiz Pty Ltd (ABN 77 084 670 600)" replace: "* @copyright ${{ steps.year.outputs.NEW_YEAR }} Squiz Pty Ltd (ABN 77 084 670 600)" -# find: '${{ steps.phrases.outputs.SEARCH }}' -# replace: "${{ steps.phrases.outputs.REPLACE }}" include: "src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.1.*.fixed" - regex: true + regex: false - name: "Debug info: Show number of modified files" run: "echo modified files: ${{ steps.findreplace.outputs.modifiedFiles }}"