浏览代码

[GH-Actions][stale] Use milkmaker

Peter 3 年之前
父节点
当前提交
aa8d44f91e
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      .github/workflows/close_old_issues_and_prs.yml

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

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