Skip to content

Commit 19a146b

Browse files
authored
Merge pull request #1351 from PHPCSStandards/feature/ghactions-use-reusable-workflow-findtokenprops
GH Actions/basics: use re-usable workflow for finding refs to static `Tokens` properties
2 parents e1fcbea + c828075 commit 19a146b

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

.github/workflows/validate.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -156,16 +156,4 @@ jobs:
156156
# The properties in the Tokens class have been deprecated.
157157
# The code in this repository should always use the constants instead.
158158
name: 'Find use of Tokens properties'
159-
runs-on: windows-latest
160-
161-
steps:
162-
- name: Checkout code
163-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
164-
165-
- name: Find uses
166-
id: findprops
167-
shell: cmd
168-
run: |
169-
findstr /S /N /C:"Tokens::$" *.php
170-
IF %ERRORLEVEL% NEQ 1 (Echo Please use the Tokens constants instead of the properties &Exit /b 1)
171-
IF %ERRORLEVEL% EQU 1 (Echo All good &Exit /b 0)
159+
uses: PHPCSStandards/.github/.github/workflows/reusable-findtokenprops.yml@main

0 commit comments

Comments
 (0)