summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-04-08 11:54:31 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-04-08 14:19:08 +0200
commit6435aaa70b646faf60047261fa4ed7fa86747612 (patch)
treef73384c50b5e670849600f95e23e49210971b9f8 /.github
parent4d939ef6ceb2db19382848471d13685ee1607a8a (diff)
downloadcurl-6435aaa70b646faf60047261fa4ed7fa86747612.tar.gz
github actions: run when pushed to master or */ci + PRs
Avoid double-builds when using "local" branches for PRs. For both macos and fuzz jobs. Closes #5201
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/fuzz.yml11
-rw-r--r--.github/workflows/macos.yml11
2 files changed, 20 insertions, 2 deletions
diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml
index ca149d988..f46fa6c4e 100644
--- a/.github/workflows/fuzz.yml
+++ b/.github/workflows/fuzz.yml
@@ -1,6 +1,15 @@
name: CI
-on: [push, pull_request]
+on:
+ # Trigger the workflow on push or pull requests, but only for the
+ # master branch
+ push:
+ branches:
+ - master
+ - '*/ci'
+ pull_request:
+ branches:
+ - master
jobs:
fuzzing:
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
index 36eb46d63..6c76ca78a 100644
--- a/.github/workflows/macos.yml
+++ b/.github/workflows/macos.yml
@@ -1,6 +1,15 @@
name: CI
-on: [push, pull_request]
+on:
+ # Trigger the workflow on push or pull requests, but only for the
+ # master branch
+ push:
+ branches:
+ - master
+ - '*/ci'
+ pull_request:
+ branches:
+ - master
jobs:
autotools: