aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-09-04 04:08:00 +0800
committerGitHub <noreply@github.com>2020-09-04 04:08:00 +0800
commit7a649ada09f61f6582892a6a574376a44878b79d (patch)
treea91c48dcc1395240b8de5bd547a3b5af4e3ce7a2 /.github/workflows
parenta533e8fb525d869ccb9fefc1294899913e4c8f6c (diff)
ci: only enforce Go checks for pushes to `main` branch
Otherwise would create duplicated GitHub Checks.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/go.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index d906ec1e..42dac69a 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -1,6 +1,7 @@
name: Go
on:
push:
+ branches: [main]
paths:
- '**.go'
pull_request: