Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH Actions: automate yearly update of test file
Every year two of the `fixed` files for the tests for the `Squiz.Commenting.FileComment` sniff need to be updated to ensure they have the correct expected year. See: squizlabs/PHP_CodeSniffer 2793, squizlabs/PHP_CodeSniffer 3525, squizlabs/PHP_CodeSniffer 3737 So far this was always done manually and all PRs created in the new year would show a failing build until that PR was merged and the other PRs rebased. This commit introduces a new workflow to automate those updates and automatically creates a PR at 5 minutes past midnight on the new year. All that needs to happy then is to merge the PR promptly and all will be good. Obviously, the true test of whether this workflow works will be on January 1st, but I've done some testing by manually reverting the change from January of this year and it all seems to look good. Refs to actions used in this workflow: * https://github.com/jacobtomlinson/gha-find-replace * https://github.com/peter-evans/create-pull-request
- Loading branch information