node-when-unrelated.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # This workflow is provided via the organization template repository
  2. #
  3. # https://github.com/nextcloud/.github
  4. # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
  5. #
  6. # Use node together with node-when-unrelated to make eslint a required check for GitHub actions
  7. # https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
  8. name: Node
  9. on:
  10. pull_request:
  11. paths-ignore:
  12. - '.github/workflows/**'
  13. - 'src/**'
  14. - 'apps/**/appinfo/info.xml'
  15. - 'package.json'
  16. - 'package-lock.json'
  17. - 'tsconfig.json'
  18. - '**.js'
  19. - '**.ts'
  20. - '**.vue'
  21. push:
  22. branches:
  23. - main
  24. - master
  25. - stable*
  26. concurrency:
  27. group: node-${{ github.head_ref || github.run_id }}
  28. cancel-in-progress: true
  29. jobs:
  30. build:
  31. permissions:
  32. contents: none
  33. runs-on: ubuntu-latest
  34. name: node
  35. steps:
  36. - name: Skip
  37. run: 'echo "No JS/TS files changed, skipped Node"'