Explorar el Código

Added Protected Folders Check Workflow.

Mr.doob hace 1 mes
padre
commit
3a84165d90
Se han modificado 1 ficheros con 20 adiciones y 0 borrados
  1. 20 0
      .github/workflows/protected-folders.yml

+ 20 - 0
.github/workflows/protected-folders.yml

@@ -0,0 +1,20 @@
+name: Protected Folders Check
+
+on:
+  pull_request:
+    paths:
+      - 'build/**'
+      - 'docs/**'
+
+permissions:
+  contents: read
+
+jobs:
+  check:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Check for protected folder changes
+        if: ${{ github.event.pull_request.author_association != 'OWNER' && github.event.pull_request.author_association != 'COLLABORATOR' }}
+        run: |
+          echo "::error::The 'build' and 'docs' folders are auto-generated and cannot be modified in PRs. Please remove these changes from your PR."
+          exit 1

粤ICP备19079148号