]> the.earth.li Git - onak.git/commitdiff
Explicitly use main rather than default-branch in GitHub build action
authorJonathan McDowell <noodles@earth.li>
Fri, 15 Sep 2023 02:46:08 +0000 (08:16 +0530)
committerJonathan McDowell <noodles@earth.li>
Fri, 15 Sep 2023 02:46:08 +0000 (08:16 +0530)
It looks like $default-branch is only available in templates.

.github/workflows/build-test.yml

index 325539c6faa8f043cf307d5f670a34c917dae752..427038a6a21eea243983fc056ef5b8c7c2e9f551 100644 (file)
@@ -2,9 +2,9 @@ name: onak build test
 
 on:
   push:
-    branches: [ $default-branch ]
+    branches: [ main ]
   pull_request:
-    branches: [ $default-branch ]
+    branches: [ main ]
 
 jobs:
   build: