]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
github actions: run when pushed to master or */ci + PRs
authorDaniel Stenberg <daniel@haxx.se>
Wed, 8 Apr 2020 09:54:31 +0000 (11:54 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 8 Apr 2020 12:19:08 +0000 (14:19 +0200)
Avoid double-builds when using "local" branches for PRs. For both macos
and fuzz jobs.

Closes #5201

.github/workflows/fuzz.yml
.github/workflows/macos.yml

index ca149d988f7addd6cf62b49c17c2a73eba0dd2b7..f46fa6c4e536fe49a9f0d31eb57b348f0db52700 100644 (file)
@@ -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:
index 36eb46d635b0e7c5d226a02d90fbb7c7937da131..6c76ca78a80a51c455945e0280dbe78be7e4294a 100644 (file)
@@ -1,6 +1,15 @@
 name: CI\r
 \r
-on: [push, pull_request]\r
+on:\r
+  # Trigger the workflow on push or pull requests, but only for the\r
+  # master branch\r
+  push:\r
+    branches:\r
+      - master\r
+      - '*/ci'\r
+  pull_request:\r
+    branches:\r
+      - master\r
 \r
 jobs:\r
   autotools:\r