浏览代码

fixed name and only run weekly

Mrxx99 2 年之前
父节点
当前提交
59f5a489f1
共有 1 个文件被更改,包括 7 次插入5 次删除
  1. 7 5
      .github/workflows/link-check.yml

+ 7 - 5
.github/workflows/link-check.yml

@@ -1,14 +1,16 @@
 # This is a basic workflow to help you get started with Actions
 
-name: L
+name: link-check
 
 # Controls when the workflow will run
 on:
+  schedule:
+    - cron: 0 0 * * 0 # once a week on sunday
   # Triggers the workflow on push or pull request events but only for the "master" branch
-  push:
-    branches: [ "master" ]
-  pull_request:
-    branches: [ "master" ]
+  #push:
+  #  branches: [ "master" ]
+  #pull_request:
+  #  branches: [ "master" ]
 
   # Allows you to run this workflow manually from the Actions tab
   workflow_dispatch: