Browse Source

github: only run Actions when Go files are changed (#6275)

ᴜɴᴋɴᴡᴏɴ 4 years ago
parent
commit
afb445bb57
2 changed files with 6 additions and 1 deletions
  1. 2 0
      .github/workflows/go.yml
  2. 4 1
      .github/workflows/lsif.yml

+ 2 - 0
.github/workflows/go.yml

@@ -3,6 +3,8 @@ on:
   push:
     branches: [master]
   pull_request:
+    paths:
+      - '**.go'
 env:
   GOPROXY: "https://proxy.golang.org"
 

+ 4 - 1
.github/workflows/lsif.yml

@@ -1,5 +1,8 @@
 name: LSIF
-on: [push]
+on:
+  push:
+    paths:
+      - '**.go'
 jobs:
   lsif-go:
     if: github.repository == 'gogs/gogs'