Skip to content

Commit

Permalink
Bring it home
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Nov 11, 2023
1 parent f7c0b23 commit 9d6dd7d
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/happy-new-year.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}"
Expand Down

0 comments on commit 9d6dd7d

Please sign in to comment.