Browse Source

[ci] Optimize AutoTestCI trigger timing.

guozhanxin 3 years ago
parent
commit
4dab5e0e59
1 changed files with 19 additions and 1 deletions
  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: