I read in this article that you can use
$default-branch to reference your repo’s default branch instead of having to hardcode
master/etc. It isn’t working for me, however. Here is how I was using
$default-branch as a trigger:
on: push: branches: [$default-branch]
When I merged a feature branch PR into my base branch, the workflow whose trigger I defined above never got kicked off. It was only when I changed the trigger to the following would it pick it up:
on: push: branches: - master
What am I doing wrong?