Skip to content

Commit 8c94ad0

Browse files
committed
Don't hardcode the default branch
1 parent 578cb1a commit 8c94ad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
run: docker run --rm ecos-java-scala:latest sbt -Dsbt.log.noformat=true +test
2424

2525
- name: Publish to Github Repositories
26-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
26+
if: github.event_name == 'push' && github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2929
GITHUB_ACTOR: ${{ github.actor }}

0 commit comments

Comments
 (0)