瀏覽代碼

[ci] Optimize AutoTestCI trigger timing.

guozhanxin 3 年之前
父節點
當前提交
4dab5e0e59
共有 1 個文件被更改,包括 19 次插入1 次删除
  1. 19 1
      .github/workflows/action_utest.yml

+ 19 - 1
.github/workflows/action_utest.yml

@@ -1,7 +1,25 @@
 name: AutoTestCI
 
 # Controls when the action will run. Triggers the workflow on push or pull request
-on: [push, pull_request]
+# events but only for the master branch
+on:
+  # Runs at 16:00 UTC (BeiJing 00:00) on the 1st of every month
+  schedule:
+    - cron:  '0 16 1 * *'
+  push:
+    branches:
+      - master
+    paths-ignore:
+      - documentation/**
+      - '**/README.md'
+      - '**/README_zh.md'
+  pull_request:
+    branches:
+      - master
+    paths-ignore:
+      - documentation/**
+      - '**/README.md'
+      - '**/README_zh.md'
 
 jobs:
   test: