From afb445bb57c7291a7741c60f8b3116afe5d8634d Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Sun, 23 Aug 2020 15:27:54 +0800 Subject: github: only run Actions when Go files are changed (#6275) --- .github/workflows/go.yml | 2 ++ .github/workflows/lsif.yml | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to '.github/workflows') 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' -- cgit v1.2.3