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

This commit is contained in:
ᴜɴᴋɴᴡᴏɴ
2020-08-23 15:27:54 +08:00
committed by GitHub
parent 92c5f94fe7
commit afb445bb57
2 changed files with 6 additions and 1 deletions

View File

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

View File

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