Browse Source

chore: don't run CI unnecessarily

tophf 4 years ago
parent
commit
b45aea7200
1 changed files with 12 additions and 1 deletions
  1. 12 1
      .github/workflows/ci.yml

+ 12 - 1
.github/workflows/ci.yml

@@ -1,6 +1,16 @@
 name: CI
 
-on: [push, pull_request]
+on:
+  push:
+    branches: [master]
+    tags-ignore:
+      - 'v*' # version-tagged commits are releases which have their own workflow
+    paths-ignore:
+      - '.github/**' # this ci.yml is also excluded so you need to re-run it explicitly if necessary
+      - LICENSE
+      - README.md
+  pull_request:
+    branches: [master]
 
 jobs:
   ci:
@@ -22,3 +32,4 @@ jobs:
           name: 'violentmonkey-${{github.sha}}'
           path: 'dist/*'
           if-no-files-found: error
+          retention-days: 30