Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not works with PUSH. Works only on pull_request #111

Open
Rustam-Mavlyanov opened this issue Apr 18, 2023 · 0 comments
Open

Not works with PUSH. Works only on pull_request #111

Rustam-Mavlyanov opened this issue Apr 18, 2023 · 0 comments

Comments

@Rustam-Mavlyanov
Copy link

add to .github/code_standard.yml following and push code to master branch

name: Coding Standards

on:
  push:
    branches:
      - "master"
    paths:
      - "**.php"
      - "**.phtml"
...
      - uses: tinovyatkin/action-php-codesniffer@v1
        with:
          files: "**.php" # you may customize glob as needed
          phpcs_path: php phpcs.phar
          standard: phpcs.xml

Error:

TypeError: Cannot read property 'base' of undefined
at Object.getChangedFiles (/home/runner/work/_actions/tinovyatkin/action-php-codesniffer/v1/dist/index.js:27705:37)
at run (/home/runner/work/_actions/tinovyatkin/action-php-codesniffer/v1/dist/index.js:3752:48)
at Object.198 (/home/runner/work/_actions/tinovyatkin/action-php-codesniffer/v1/dist/index.js:3777:1)
at webpack_require (/home/runner/work/_actions/tinovyatkin/action-php-codesniffer/v1/dist/index.js:22:30)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant