ci: rename default branch from master to main

Problem: the fork used master as the default branch name.

Solution: rename to main and update all CI workflow triggers,
ref checks, and the pre-push hook fallback.
This commit is contained in:
Barrett Ruth 2026-02-20 16:32:53 -05:00
parent 4ab4765a84
commit 42af6caf0a
2 changed files with 5 additions and 6 deletions

View file

@ -3,11 +3,10 @@ name: Tests
on:
push:
branches:
- master
- stevearc-*
- main
pull_request:
branches:
- master
- main
jobs:
luacheck:
@ -86,7 +85,7 @@ jobs:
python -m pip install pyparsing==3.0.9
make doc
- name: Commit changes
if: ${{ github.ref == 'refs/heads/master' }}
if: ${{ github.ref == 'refs/heads/main' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMIT_MSG: |
@ -103,7 +102,7 @@ jobs:
release:
name: release
if: ${{ github.ref == 'refs/heads/master' }}
if: ${{ github.ref == 'refs/heads/main' }}
needs:
- luacheck
- stylua