maziggy 1 miesiąc temu
rodzic
commit
62f2e616a0
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      .github/workflows/security.yml

+ 2 - 2
.github/workflows/security.yml

@@ -146,7 +146,7 @@ jobs:
           retention-days: 30
           retention-days: 30
 
 
       - name: Create or close pip security issue
       - name: Create or close pip security issue
-        if: always()
+        if: always() && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
         uses: actions/github-script@v7
         uses: actions/github-script@v7
         with:
         with:
           script: |
           script: |
@@ -321,7 +321,7 @@ jobs:
           retention-days: 30
           retention-days: 30
 
 
       - name: Create or close npm security issue
       - name: Create or close npm security issue
-        if: always()
+        if: always() && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
         uses: actions/github-script@v7
         uses: actions/github-script@v7
         with:
         with:
           script: |
           script: |