Skip to content

Commit 68a507a

Browse files
committed
[ci] Fix to actually run on pushing to main branch
A reasonable assumption would be that `$default-branch` would refer to the default branch of the repository, when the workflow runs. However, this is not the case: the `$default-branch` variable is intended for workflow **templates** only, and gets macro-expanded when copying the workflow; **not** when running it. C.f. actions/starter-workflows#590 (comment)
1 parent 6474841 commit 68a507a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/pelican.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ name: Deploy Pelican site to GH Pages
99

1010
on:
1111
push:
12-
branches: [$default-branch]
12+
branches:
13+
- main
1314

1415
workflow_dispatch:
1516

0 commit comments

Comments
 (0)