aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-08-23 15:27:54 +0800
committerGitHub <noreply@github.com>2020-08-23 15:27:54 +0800
commitafb445bb57c7291a7741c60f8b3116afe5d8634d (patch)
tree0d9c7f06f27172545450992a08cceed3f2833916 /.github/workflows
parent92c5f94fe7fae17620ecb8895e287e9e66fb135c (diff)
github: only run Actions when Go files are changed (#6275)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/go.yml2
-rw-r--r--.github/workflows/lsif.yml5
2 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index a0006d6f..35650160 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -3,6 +3,8 @@ on:
push:
branches: [master]
pull_request:
+ paths:
+ - '**.go'
env:
GOPROXY: "https://proxy.golang.org"
diff --git a/.github/workflows/lsif.yml b/.github/workflows/lsif.yml
index 20136b78..a0f3daaa 100644
--- a/.github/workflows/lsif.yml
+++ b/.github/workflows/lsif.yml
@@ -1,5 +1,8 @@
name: LSIF
-on: [push]
+on:
+ push:
+ paths:
+ - '**.go'
jobs:
lsif-go:
if: github.repository == 'gogs/gogs'