2
0
Эх сурвалжийг харах

[GH-Actions][stale] Use milkmaker

Peter 3 жил өмнө
parent
commit
aa8d44f91e

+ 4 - 4
.github/workflows/close_old_issues_and_prs.yml

@@ -2,9 +2,9 @@ name: 'Close stale issues and PRs'
 on:
 on:
   schedule:
   schedule:
     # Once every day at midnight UTC
     # Once every day at midnight UTC
-    - cron: "0 0 * * *" 
+    - cron: "0 0 * * *"
   workflow_dispatch: # Allow to run workflow manually
   workflow_dispatch: # Allow to run workflow manually
-  issue_comment: # Run workflow on comments  
+  issue_comment: # Run workflow on comments
 
 
 jobs:
 jobs:
   stale:
   stale:
@@ -16,7 +16,7 @@ jobs:
       - name: Mark/Close Stale Issues and Pull Requests 🗑️
       - name: Mark/Close Stale Issues and Pull Requests 🗑️
         uses: actions/stale@v4
         uses: actions/stale@v4
         with:
         with:
-          repo-token: ${{ secrets.GITHUB_TOKEN }}
+          repo-token: ${{ secrets.STALE_ACTION_PAT }}
           days-before-stale: 60
           days-before-stale: 60
           days-before-close: 7
           days-before-close: 7
           stale-issue-message: >
           stale-issue-message: >
@@ -32,4 +32,4 @@ jobs:
           operations-per-run: "250"
           operations-per-run: "250"
           ascending: "true"
           ascending: "true"
           #DRY-RUN
           #DRY-RUN
-          debug-only: "false"
+          debug-only: "false"