Allow building docs from main (#53)

We eventually only want to support building docs from release branches
and tags, however, while we're working to initially set up the docs, we
may have some churn. So we want to be able to publish from main during
that churn.

Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
This commit is contained in:
Kathryn Baldauf
2025-06-09 16:40:22 -07:00
committed by GitHub
parent 91db40d99c
commit 2923b33836
+1 -1
View File
@@ -7,7 +7,7 @@ on:
jobs:
checkBranch:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags') || startsWith(github.ref, 'refs/heads/release')
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags') || startsWith(github.ref, 'refs/heads/release')
steps:
- name: Branch validation
run: echo "Branch ${{ github.ref_name }} is allowed"