]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
workflows: limit what branches to run CodeQL on
authorMarc Hoersken <info@marc-hoersken.de>
Sun, 12 Jul 2020 20:07:38 +0000 (22:07 +0200)
committerMarc Hoersken <info@marc-hoersken.de>
Mon, 13 Jul 2020 19:01:03 +0000 (21:01 +0200)
Align CodeQL action with existing CI actions:
- Update branch filter to avoid duplicate CI runs.
- Shorten workflow name due to informative job name.

Reviewed-by: Daniel Stenberg
Closes #5660

.github/workflows/codeql-analysis.yml

index a8329ff7c542b55d778247faefaadcff5737e009..fbdcf8a26f1893d5095108d46bbee46f7a18e354 100644 (file)
@@ -1,16 +1,21 @@
-name: "Code scanning - action"
+name: CI
 
 on:
+  # Trigger the workflow on push or pull requests, but only for the
+  # master branch
   push:
+    branches:
+      - master
+      - '*/ci'
   pull_request:
+    branches:
+      - master
   schedule:
     - cron: '0 0 * * 4'
 
 jobs:
-  CodeQL-Build:
-
+  codeql:
     runs-on: ubuntu-latest
-
     steps:
     - name: Checkout repository
       uses: actions/checkout@v2