瀏覽代碼

Remove debug mode and run twice a week

Signed-off-by: Joana Hrotko <[email protected]>
Joana Hrotko 1 年之前
父節點
當前提交
ecac13f272
共有 1 個文件被更改,包括 2 次插入10 次删除
  1. 2 10
      .github/workflows/stale.yml

+ 2 - 10
.github/workflows/stale.yml

@@ -1,14 +1,7 @@
 name: 'Close stale issues'
 name: 'Close stale issues'
 on:
 on:
-  # schedule:
-  #   - cron: '0 0 * * *' # at midnight UTC every day
-  pull_request:
-  workflow_dispatch:
-    inputs:
-      debug_enabled:
-        description: 'To run in debug mode'
-        required: false
-        default: "true"
+  schedule:
+    - cron: '0 0 * * 0,3' # at midnight UTC every Sunday and Tuesday
 jobs:
 jobs:
   stale:
   stale:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
@@ -19,7 +12,6 @@ jobs:
       - uses: actions/stale@v9
       - uses: actions/stale@v9
         with:
         with:
           repo-token: ${{ secrets.GITHUB_TOKEN }}
           repo-token: ${{ secrets.GITHUB_TOKEN }}
-          debug-only: ${{ github.event.inputs.debug_enabled }}
           stale-issue-message: >
           stale-issue-message: >
             This issue has been automatically marked as stale because it has not had
             This issue has been automatically marked as stale because it has not had
             recent activity. It will be closed if no further activity occurs. Thank you
             recent activity. It will be closed if no further activity occurs. Thank you