Partially revert github event usage in GH actions
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 22 Oct 2022 11:08:57 +0000 (13:08 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 22 Oct 2022 11:08:57 +0000 (13:08 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/workflows/ci.yml
.github/workflows/codeql-analysis.yml

index cdeb918394383e022e989c32f323468e00f6c6e0..be0d45e49fdc48ded5633cbb4c2023717cf6345d 100644 (file)
@@ -2,8 +2,7 @@ name: CI
 
 on:
   push:
-    branches:
-      - ${{ github.event.repository.default_branch }}
+    branches: [master]
   pull_request:
     types: [opened, synchronize, reopened]
   workflow_dispatch:
index 719e5743462e9e447bac5e9410443ccb7f2cc031..3e61d69eb879f74d018cc4bd063225dac204880e 100644 (file)
@@ -13,12 +13,10 @@ name: 'CodeQL'
 
 on:
   push:
-    branches:
-      - ${{ github.event.repository.default_branch }}
+    branches: [master]
   pull_request:
     # The branches below must be a subset of the branches above
-    branches:
-      - ${{ github.event.repository.default_branch }}
+    branches: [master]
   schedule:
     - cron: '44 9 * * 3'