Skip to content

Commit 307ebb6

Browse files
committed
Fix branch check in publish.yml
1 parent 980ac87 commit 307ebb6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818

19+
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs#determining-when-to-use-contexts
1920
- name: Exit if not on master branch
20-
if: github.ref_name != 'master'
21+
if: ${{ github.ref == 'refs/heads/main' }}
2122
run: exit -1
2223

2324
- name: Install uv

0 commit comments

Comments
 (0)